Question and answer is powered by AnsPress.io
I am using blade template in laravel. Now, I want to access a controller function directly from the view page without accessing root. How can I do that?? Help me, please.
Add this lined top of the page to replace your controller name
use \App\Http\Controllers\ControllerName;
Now call the controller function name
ControllerName::function_name()