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

There is no nice way to do this, and it really shouldn't be. Calling a controller method from a view is in almost all cases the wrong approach.

If you explain what you are trying to accomplish instead we might help you to solve your problem in a better way.

If you absolutely must do this, take a look at this: http://stackoverflow.com/questions/15205239/call-a-controller-in-laravel-4

0

I agree with you I just needed to figure out how they are calling this

{{Auth::user()->username}}

That is what i am tying to create something like that.

0

The original approach was wrong. I figured it out.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

kyoukhana kyoukhana Joined 28 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.