I'm relatively new to laravel and I have found that you have access to certain methods in the controllers e.g. response()
, auth()
, view()
etc. I'd like to know how it does that.
Thanks
I'm relatively new to laravel and I have found that you have access to certain methods in the controllers e.g. response()
, auth()
, view()
etc. I'd like to know how it does that.
Thanks
For further actions, you may consider blocking this person and/or reporting abuse
Fabrice -
Saurabh Dhariwal -
Nacho Colomina Torregrosa -
Navneet Verma -
Top comments (1)
Best bet is to dig into the code yourself. But the basic answer is that they are helper methods that return objects either via the IoC container or use a factory to create the object.