laravel get route example
Example 1: laravel is route name
// Check if route is ***
Request::route()->named("YourRouteNameView")
Example 2: how to create route in laravel
Route::match(['get', 'post'], '/', function () {
//
});
// Check if route is ***
Request::route()->named("YourRouteNameView")
Route::match(['get', 'post'], '/', function () {
//
});