mardi 30 août 2016

Laravel routing with virtual sub-domain name

I am making one application where some routes should act like they are routing from sub domain.

NB : I don't want to create sub domains. Everything will work from the controllers and routes.

This is the url

http://ift.tt/2bT2CfL

This is the route

Route::group(['domain' => '{site}.myapp.com'], function () {
   Route::get('/{site}/{page}', 'page@site');

});

I am trying to make the url look like

http://ift.tt/2bP3m8d

Can anyone help me how to achieve this one ?



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

Aucun commentaire:

Enregistrer un commentaire