I have this error when I used {{ Helper::test(); }}
on a blade
and on my config/app.php
, I already have
and this is inside of my Helper.php
<?php namespace App;
class Helper {
public static function test() {
return "wa";
}
}
and I already done the composer.json
then run the composer dump-autoload
...
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
},
"files": [
"app/Helper.php"
]
},
...
I don't know what I missed, is there any suggestion to be able to use the helper on a blade on a laravel 5?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1Hq9jSQ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire