idea-php-laravel-plugin
idea-php-laravel-plugin copied to clipboard
Route::match 'as' attribute not indexed for route name autocompletion
When declaring a route with Route::match as apposed to Route::get/post/etc the 'as' attribute it's entered into the index.
// 'account.home' is not indexed when using match
Route::match(['get', 'post'], '/accounts/{account}', [
'uses' => 'AccountController@index',
'as' => 'account.home',
]);
// 'account.home' will be indexed when using get
Route::get('/accounts/{account}', [
'uses' => 'AccountController@index',
'as' => 'account.home',
]);
I believe it could just be added here but I'm not familiar with the source code.