Open
Description
It would be awesome if gf
while inside route('route.name')
would take the user to the route handler. I figure maybe this feature could leverage artisan route:list
behind the scenes. This might be tough for closure routes since we'd likely have to parse out the various route files manually, which might be named differently. The router has a base_path()
option, so we could look into seeing if it stores that state anywhere, but even then, I was on a project that looped over a set of files in a directory and did a plain ol' require
in the RouteServiceProvider
.
I think this would also be cool for url()
but I'm not sure how hard it would be to compare url("foo/bar/{$user->id}")
to Route::get('foo/bar/{user}')
.