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

前端 未结 10 993
感情败类
感情败类 2020-11-29 05:23

In laravel 4 i just used a function

$varbl = App::make(\"ControllerName\")->FunctionName($params);

to call a controller function from a

10条回答
  •  囚心锁ツ
    2020-11-29 06:04

    Just try this in your view :

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

    OR

    
    

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

提交回复
热议问题