路由獲取
use Illuminate\Support\Facades\Auth;
...
$name = Route::currentRouteName();
view()->share('route_name',$name);
檢視輸出
{{$route_name}}
本作品採用《CC 協議》,轉載必須註明作者和本文連結
use Illuminate\Support\Facades\Auth;
...
$name = Route::currentRouteName();
view()->share('route_name',$name);
{{$route_name}}
本作品採用《CC 協議》,轉載必須註明作者和本文連結