Laravel 5 call a model function in a blade view
Related to the question in your answer: You have multiple options to achieve this that are way better: Let’s assume you have a model which you pass to the view: $model = Model::find(1); View::make(‘view’)->withModel($model); Now in your Model you could have a function: public function someFunction() { // do something } In your view you … Read more