Quickly Navigate from Routes file to Controller in Laravel
Instead of routing like this:
Route::get('page', 'PageController@action');
You can specify the Controller as a class:
Route::get('page', [\App\Http\Controllers\PageController::class, 'action']);
or
use \App\Http\Controllers\PageController;
Route::get('page', [PageController::class, 'action']);
Then you will be able to click on “PageController” , and navigate directly to Controller, instead of searching for it manually.