How to reference a custom class in Laravel 5.1?

I am having trouble linking to my custom class on my page foldername/x.blade.php. I have a php class in a folder App\libs\. I tried to figure it out, but spent a lot of time on my time ... any help?

+4
source share
1 answer

Go go / config / app.php and add it to aliases like this

'MyClass' => App\libs\MyClass::class,
+5
source

Source: https://habr.com/ru/post/1616945/


All Articles