dimanche 18 mars 2018

How to call static helper class from blade in laravel?

I am working on a project which was written in laravel 5.2. Now i needed to upgrade it to 5.6. So i downloaded the laravel 5.6 framework and moved Controllers, helpers, model, database, resources from laravel 5.2 to the new laravel 5.6 project.

Everything seems fine, expect that in laravel 5.2 it used helper classes which are in app\Helper, in blade. When i moved them to laravel 5.6 it giving me error saying

Call to undefined function GetRatingVideo() 

where as this function does exit inside helper.php inside Helper folder 5.6?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2IwDavo
via IFTTT

Aucun commentaire:

Enregistrer un commentaire