Reputation: 392
I want to build Laravel CMS with following requirements:
Can you please let me know how to setup this environment using Laravel 5.4.
Thanks.
Upvotes: 3
Views: 8404
Reputation: 392
This project has been finished now. So posting my own solution for the question.
Following are points to take care:
Whenever server gets request, sub-domain is matched with tenant id in the middleware & load all the records for that tenant only.
I've hope this might help someone else.
Upvotes: 8
Reputation: 29
For build a Laravel CMS with following requirements you need use:
You can set an Admin Role with policies and gates or uses entrust For Multi-sites, You can used something like https://github.com/hyn/multi-tenant, so If you use multitenant you can
For config subdomain you can read the official documentation https://laravel.com/docs/5.4/routing#route-group-sub-domain-routing
Upvotes: 0