Laravel URL Generation: URLs For Controller Actions

URLs For Controller Actions

$url = action('HomeController@index');
Use App\Http\Controllers\HomeController;

$url = action([HomeController::class, 'index']);
$url = action('UserController@profile', ['id' => 1]);

Related concepts

URLs For Controller Actions

Laravel URL Generation: URLs For Controller Actions — Structure map

Clickable & Draggable!

Laravel URL Generation: URLs For Controller Actions — Related pages: