laravel route name as code example
Example 1: laravel is route name
// Check if route is ***
Request::route()->named("YourRouteNameView")
Example 2: laravel route
Route::get('posts/{post}/comments/{comment}', function ($postId, $commentId) {
//
});