jsertx
jsertx

Reputation: 636

Controller function for prefixed route group root

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

Answers (1)

jsertx
jsertx

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

Related Questions