I have created class Helper
by path App\Http\Helpers\
:
<?php
namespace App\Http\Helpers;
class Helper
{
public static function applyClass($user) {
return "new";
}
}
Then I have registered it in app.php
in section aliaes
:
'Helper' => App\Http\Helpers\Helper::class
When I tied to call static method from blade:
<tr class="">
I get an error:
Class 'Helper' not found
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2KX6uwW
via IFTTT
Aucun commentaire:
Enregistrer un commentaire