You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to get extra intellisense on the new routing syntax?
Currently, it autocompletes the entire ClassName@Action
With the new syntax, maybe it could pick up a list of available controller actions while triggering the intellisense inside an array, which is the second parameter:
Route::get('/', [IndexController::class, 'index'])->name('index');
^ here
The current behavior could stay the same while triggering it with the old syntax (outside the array), but behave differently while inside the array.
If the first parameter in the array is, for example, PostsController::class which has methods, like: show / edit / update / delete / etc. the intellisense could suggest only those actions. It would perform a lookup on this class only and list available actions or maybe it could autocomplete the full class name + action (new syntax) while triggering inside the array, when selecting it from the list:
which results in inserting two parameters SessionsController::class, 'destroy' into the current array
Would it be possible to get extra intellisense on the new routing syntax?
Currently, it autocompletes the entire ClassName@Action
With the new syntax, maybe it could pick up a list of available controller actions while triggering the intellisense inside an array, which is the second parameter:
The current behavior could stay the same while triggering it with the old syntax (outside the array), but behave differently while inside the array.
If the first parameter in the array is, for example,
PostsController::class
which has methods, like:show / edit / update / delete / etc.
the intellisense could suggest only those actions. It would perform a lookup on this class only and list available actions or maybe it could autocomplete the full class name + action (new syntax) while triggering inside the array, when selecting it from the list:which results in inserting two parameters
SessionsController::class, 'destroy'
into the current arrayMaybe an auto-import of the selected controller would also be nice.
The text was updated successfully, but these errors were encountered: