get current route in laravel inertia code example
Example 1: laravel get current route name
Route::currentRouteName()
Example 2: get current route in blade laravel
Path: post/demo
Route::currentRouteName()
Path: post/demo