How to call a controller function inside a view in laravel 5

Just try this in your view :

{{ ControllerName::Functionname($params); }}

OR

<?php echo ControllerName::Functionname($params);?>

Refer this : http://laravel.io/forum/03-06-2014-what-is-the-proper-way-to-call-controllers-from-the-view?page=1

Leave a Comment