Shift with red gradient lettering
Loading navigation...

actions to tuples

Premium
Laravel

Convert controller action strings to array tuples in your registered routes for improved code completion and static analysis.

Before

Route::get('/home', 'HomeController@index');

After

Route::get('/home', [HomeController::class, 'index']);

← Back to the Workbench Tasks