laravel 8 route name with id code example
Example 1: laravel is route name
// Check if route is ***
Request::route()->named("YourRouteNameView")
Example 2: laravel 8 routes namespace
Route::group(['namespace' => 'App\Http\Controllers', 'prefix' => 'admin',
'as' => 'admin.', 'middleware' => ['auth:sanctum', 'verified']], function()
{
Route::get('/dashboard', ['DashboardController', 'index']);
});