After remove public from url unable to access css and js
I want to upload my laravel project in sub folder on server. But after removing public from the url i am unable to access js and css file. I am using Laravel 5.5. I saw many question regarding to this topic. But I did not found soloution of this problem for me. Please help
An even better way of doing it would be to use Laravel Mix
This way you would combine all of your vendor CSS into one vendor.css file and you'd only need to include that one file in your template. Plus, fewer files means faster downloads for the user. Same goes for JS files
@nanadjei2 I want upload webiste on server in subfolder, So i have to remove public from url but website css and js are in public folder so thats are not coming.
I have same problem I can fix it from .env file. you just need to add APP_URL with public in this and also add ASSET_URL, like this.
APP_URL=http:"//localhost/my-project/public"
ASSET_URL="${APP_URL}"
hope so this will resolve your problem