get router laravel code example
Example 1: laravel get current route name
Route::currentRouteName()
Example 2: laravel route
Route::get('posts/{post}/comments/{comment}', function ($postId, $commentId) {
//
});
Route::currentRouteName()
Route::get('posts/{post}/comments/{comment}', function ($postId, $commentId) {
//
});