-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
different admin route #20
Comments
@ilidan86 Sure it is. Go to protected function mapAdminRoutes()
{
Route::group([
'prefix' => 'cms-name', //change
'as' => 'cms-name.', //change
'middleware' => ['web', 'admin','auth:admin'],
'namespace' => $this->namespace,
], function ($router) {
require base_path('routes/admin.php');
});
} |
That makes sense :) Thanks for really great work you did there! I think you saved us lots of time! |
Thanks appreciate it. One more thing, copy and paste the method from my previous post again because i forgot to add |
Dziękuję! That worked! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there any quick way to set different admin route but keeping admin guard?
php artisan multi-auth:install admin -f
but instead of
my-website.com/admin/login
I want to usemy-website.com/cms-name/login
The text was updated successfully, but these errors were encountered: