Controller methods completion

Laravel Idea completes controller methods in the route files.

Single action controllers are also supported:

Completion understands Route::group calls with namespaces:

Correct references to methods and classes:

Controllers completion

Route names completion

Complex case:

Miscellaneous completions

Route::group parameters:



Resource controller method names:

Route files recognition

Laravel Idea analyzes RouteServiceProvider for Laravel or bootstrap/app.php file for Lumen and tries to find all needed information about route files there: route files, root namespaces, route name prefixes, etc. For some complex cases when route files are included with non-standard way, helper phpDoc comments can be added there to have same completions: