I was doing Request::is('/')
which gave me true
for example.com
Now I am using named routes and for the name welcome
Route::get('/', function () {
return view('admin_panel.welcome');
})->name('welcome');
Request::is(route('welcome'))
returns false
What should I do. Note: I am using this for active states in navigation
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2LT1IAD
via IFTTT
Aucun commentaire:
Enregistrer un commentaire