laravel route not passing the correct type code example
Example: laravel route
# Using Request
Route::get('user/{name}', function (Request $request) {
return $request->route('name');
});
# Using Request
Route::get('user/{name}', function (Request $request) {
return $request->route('name');
});