mardi 21 février 2017

Laravel 5.4 remove public from url :Side effects

I have successfully removed 'public' from my Laravel project URL.

Now when I include any asset using helper function asset() I have to include public at all places like below.

asset('public/images/a.img')

When I try dumping helper function basepath() and publicpath(), correct values are displayed. How can I avoid writing public all the times in all calls to asset. Is there anyway asset function uses publicpath() instead of basepath().



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2mi1pRU
via IFTTT

Aucun commentaire:

Enregistrer un commentaire