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
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire