jeudi 26 juillet 2018

How can i redirect to my sub domain on specific condition in laravel 4.2 to sub domain 5.4 laravel

i want to redirect user from maindomian.com to subdomain.maindomian.com, when user click on account link or when particular event occurs.

i don't understand how can i use this code for this problem.

Route::group(array('domain' => '{account}.myapp.com'), function() {

Route::get('user/{id}', function($account, $id)
{
    //
});

});



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire