Laravel : Separate domain for admin and front in same installation
In the laravel there is functionality to make separate subdomains in same installation of laravel
Example :
yourdomain.com ( For Front )
admin.yourdomain.com ( For Admin )
forum.yourdomain.com ( For Forum )
we can set this kind of separate domains in same installation for that we have to define all routes in group of front, admin, forum in routes file
Example :
Route::group([‘domain’ => ‘admin.yourdomain.com’], function () {
// define all routes which useful in admin
});
Route::group([‘domain’ => ‘forum.yourdomain.com’], function () {
// define all routes which useful in forum
});
Route::group([‘domain’ => ‘yourdomain.com’], function () {
// define all routes which useful in front
});