4

I'm having trouble referencing my custom class to my foldername/x.blade.php page. I have my php class under App\libs\ folder. I have tried to figure it out, but wasted alot of my time... any help?

1 Answer 1

5

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

'MyClass' => App\libs\MyClass::class,
Sign up to request clarification or add additional context in comments.

1 Comment

you are too good.it just worked like charm..Thanks alot..@Bojan

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.