laravel get current route name
Route::currentRouteName()
laravel get current route name
Route::currentRouteName()
get current route in blade laravel
<p> Path: {{ Request::path() }} </p>
laravel is route name
// Check if route is ***
Request::route()->named("YourRouteNameView")
laravel get route
Route::get('/user', 'UserController@index');
laravel get route
Route::get('foo', function () {
return 'Hello World';
});
set route name laravel
Route::get('/novanoticia', 'HomeController@getNovaNoticia')->name('route_name');
Route::get('/novanoticia', ['as' => 'route_name', 'uses' => 'HomeController@getNovaNoticia']);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us