I try to use redirect->action It error too many redirect in my Controller
try {
//If check urL category null
if (is_null($category)){
Log::error("[Front] MenuController@menu : notfound public category ");
//error redirect
return redirect()->action('Front\HomeSlideviewController@index', $url);
}
} catch (\Exception $e) {
return 'error';
}
here is my web.php
Route::get('/{url?}', 'MenuController@menu');
Route::get('/{name?}', 'HomeSlideviewController@index')->name('promotiondetail');
I try to make a fucntion if Url is empty use redirect action
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2hxnJHp
via IFTTT
Aucun commentaire:
Enregistrer un commentaire