Bilal Arshad
Bilal Arshad

Reputation: 571

laravel not picking file through asset()

In my laravel project i am trying to get js file though asset('js/app.js') which is inside public folder. it is working fine on localhost but on server it is not picking file. It is working on another server. I think there is any issue with htaccess file.

I try to use url() and URL::asset() but not working. I checked source of page link is perfect but still fail to pick file

I want to access that js file.

Upvotes: 0

Views: 52

Answers (1)

JorisJ1
JorisJ1

Reputation: 989

The question has been answered in the comments, and was solved with this code:

asset('public/js/app.js')

Upvotes: 1

Related Questions