idea-php-laravel-plugin icon indicating copy to clipboard operation
idea-php-laravel-plugin copied to clipboard

Route::match 'as' attribute not indexed for route name autocompletion

Open andyvenus opened this issue 6 years ago • 0 comments

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.

andyvenus avatar Jan 17 '19 14:01 andyvenus