laravel Route::current() code example
Example 1: laravel get route
Route::get('foo', function () {
return 'Hello World';
});
Example 2: get current route in blade laravel
Path: post/demo
Route::get('foo', function () {
return 'Hello World';
});
Path: post/demo