Randy_Johnson
4 months ago
539
4
General

Blade action ('some method in some far off controller!')

Posted 4 months ago by Randy_Johnson

Hi, I am attempting to run a function in blade in some far off controller, instead of copying and pasting it.

My only concern here is, will Laravel prevent this due to how my routes are set up? and can this be fixed by just having a utilities controllers and dumping a bunch of code which does specific functions in here so it has access.

Or is the above nonsense and the code below is wrong.

{{ action('TTobacco\Customer\[email protected]') }}

Please sign in or create an account to participate in this conversation.