route().current() not working for base route
See original GitHub issueI have a dashboard route defined in Laravel:
Route::get('/')->name('dashboard')->uses('DashboardController@index');
But when I call route().current()
on the dashboard page (/
), this function returns undefined.
I would have expected dashboard
.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:7 (3 by maintainers)
Top Results From Across the Web
route().current() not working for base route · Issue #200 - GitHub
I have a dashboard route defined in Laravel: Route::get('/')->name('dashboard')->uses('DashboardController@index'); But when I call ...
Read more >BASE URL Routing not working as intended - laravel
It looks like the urls in the views are hard coded (for example). The fix is the same as this answer, which is...
Read more >Common Routing Tasks - Angular
The Angular CLI performs this step for you. However, if you are creating an application manually or working with an existing, non-CLI application,...
Read more >Defining Your Routes - Routing - Ember Guides
Basic Routes. The map() method of your Ember application's router can be invoked to define URL mappings. When calling map() , you should...
Read more >ASP.NET Core Blazor routing and navigation - Microsoft Learn
These constraints assume that the URL is non-localizable. Route constraints also work with optional parameters. In the following example, Id is ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This should be fixed in the latest build, which I’ll tag today.
Works like a charm. Thank you @DanielCoulbourne !