Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laraval routing

use AppHttpControllersUserController;
use AppModelsUser;

// Route definition...
Route::get('/users/{user}', [UserController::class, 'show']);

// Controller method definition...
public function show(User $user)
{
    return view('user.profile', ['user' => $user]);
}
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laraval #routing
ADD COMMENT
Topic
Name
9+3 =