Reputation: 636
I have a routes group for admin, with the admin prefix, but I can't reach the '/' route, and I want to use a login controller for admin/, the root of the group prefix. But I get Forbidden error
<?
Route::group([
'prefix' => 'admin',
'namespace' => 'Admin'
], function () {
Route::get('/', function () {
return view("admin.layout");
});
Route::get('users', function () {
return view("admin.layout");
});
});
?>
Upvotes: 1
Views: 680
Reputation: 636
Okay, it was because I had an "admin" folder in the public path and It was going to the real dir instead of the virtual friendly url.
Upvotes: 1