how to return route in controller in laravel code example
Example 1: laravel route controller
use App\Http\Controllers\UserController;
Route::get('user/{id}', [UserController::class, 'show']);
Example 2: laravel routes return view in web.php
Route::get("/page", function(){
return View::make("dir.page");
});