{"id":18052721,"url":"https://github.com/cham11ng/multi-tenant-postgres","last_synced_at":"2025-07-16T13:05:32.197Z","repository":{"id":21952505,"uuid":"93844585","full_name":"cham11ng/multi-tenant-postgres","owner":"cham11ng","description":"SAAS. Laravel Multi-tenant with Postgres. Reference: https://github.com/pacuna/Laravel-PGSchema","archived":false,"fork":false,"pushed_at":"2025-03-14T00:08:48.000Z","size":1532,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T20:07:57.184Z","etag":null,"topics":["axios","laravel","laravel-framework","middleware","multi-tenant","postgres","routing","saas","subdomain","vue","vue-components","vuejs","vuejs2"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cham11ng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-09T09:50:41.000Z","updated_at":"2025-03-14T00:08:51.000Z","dependencies_parsed_at":"2022-08-07T10:01:23.117Z","dependency_job_id":null,"html_url":"https://github.com/cham11ng/multi-tenant-postgres","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cham11ng/multi-tenant-postgres","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cham11ng%2Fmulti-tenant-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cham11ng%2Fmulti-tenant-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cham11ng%2Fmulti-tenant-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cham11ng%2Fmulti-tenant-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cham11ng","download_url":"https://codeload.github.com/cham11ng/multi-tenant-postgres/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cham11ng%2Fmulti-tenant-postgres/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265512270,"owners_count":23779896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axios","laravel","laravel-framework","middleware","multi-tenant","postgres","routing","saas","subdomain","vue","vue-components","vuejs","vuejs2"],"created_at":"2024-10-30T23:12:57.376Z","updated_at":"2025-07-16T13:05:32.140Z","avatar_url":"https://github.com/cham11ng.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multi-tenant Application (Software-as-a-Service)\n\nLaravel Multi-tenant with Postgres.\n\n### Installation:\n\n`git clone` this repository and `cd` inside the project root, then enter the following commands\n\n1. `composer install --prefer-dist -vvv` (might take a while to complete)\n\n2. `cp .env.example .env`\n\n3. `php artisan key:generate`\n\n    Now open `.env` file and make necessary changes to the **DB_** section.\n    \n    **Yes, of course, you'll have to setup a database and it's user already before the next step!**\n    Otherwise, exactly what settings were you going to put in the _DB\\__ section of the `.env` file?\n\n4. `php artisan migrate`\n\n5. `php artisan db:seed`\n\n6. `php artisan serve` ain't gonna work in this case. You need to _Virtual Host_ server name in term of _Apache_ or _Server Blocks_ in terms of _Nginx_\n \n**Note:** `server name` should be same as `.env` file `APP_URL` section \n\n### Please Note\n\nThis software uses the [Laravel](https://laravel.com/ \"Laravel\") framework.\n\nCurrently, [Laravel 5.4](https://laravel.com/docs/5.4 \"Laravel 5.4\") is being used.\n\nIf you are getting any error, it is most probably due to \nunfulfilled [requirements](https://laravel.com/docs/5.4#server-requirements \"Server Requirements\") \nof the framework itself.\n\nAlso, make sure that you have `postgres` database installed and proper driver `php-pgsql` package so that you can use `postgres` database with php7.1 in your project.\n\n### Reference \n* https://github.com/pacuna/Laravel-PGSchema\n\n* https://httpd.apache.org/docs/2.4/vhosts/name-based.html\n\n* https://www.nginx.com/resources/wiki/start/topics/examples/server_blocks/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcham11ng%2Fmulti-tenant-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcham11ng%2Fmulti-tenant-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcham11ng%2Fmulti-tenant-postgres/lists"}