I wrote this code expecting to be redirected to the root url (/
or /home
), but instead, it's redirecting to %7Bhome%7D
.
Route::get('/{home}', ['as' => 'home', function () {
return view('home');
}])->where('home', '(home)?');
Does anyone know where the problem is?
note: it does support both urls (/
or /home
). the problem is just when calling for its name on redirects.
Thanks in advance!
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1NAeYXQ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire