lundi 7 septembre 2020

How to call non-static method using laravel alias

I have a custom helper class and ill set the alias for that class for access to the blade file(frontend). I can access the static methods referring to the alias::method but I need to access the nonstatic methods from the view. how can I do that?

'Access' => App\Services\Access::class,
Two functions in Access class.
public function getPermissions()
public static function getUser()

I can easily access the static function using Access::getUser() So How can access the non-static functions?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire