mardi 17 janvier 2017

Laravel subdomain routing is not working

I'm trying to have an admin subdomain (like this)

Route::group(['domain' => 'admin.localhost'], function () {
    Route::get('/', function () {
        return view('welcome');
    });
});

but admin.localhost acts just like localhost. How I'm supposed to do this correctly?

I'm using Laravel 5.1 and MAMP on OSX



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2jt6Xvb
via IFTTT

Aucun commentaire:

Enregistrer un commentaire