Support the ongoing development of Laravel.io →
Requests Views Blade
Last updated 2 years ago.
0

A few options.

  1. Pass variables to the view from your controller.
  2. Set a global view variable
  3. use view composer.

You need to choose one of these depending on your use case.

Anyway, the answer is here http://forumsarchive.laravel.io/viewtopic.php?id=10095

Route::getCurrentRoute()->getAction();
Route::currentRouteAction();
Route::currentRouteName();
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

jrsalunga jrsalunga Joined 25 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.