You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, is there any shortcut to referring to policy actions that don't need templates in Blade?
To refer to a policy action that doesn't need a model, I need to type the full model name at all times as there is no PHP "use" statement in Blade, for example:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, is there any shortcut to referring to policy actions that don't need templates in Blade?
To refer to a policy action that doesn't need a model, I need to type the full model name at all times as there is no PHP "use" statement in Blade, for example:
Example with shortcuts:
Or
Beta Was this translation helpful? Give feedback.
All reactions