Anyone? I really need help with this.
Laravel on shared hosting
I have a shared hosting with ssh access, I managed to install laravel, run npm run prod, but as I can't run the server by php artisan serve I need to make the server to run the php directly so I renamed the server.php file to index.php and put the .htaccess from public to the root folder and it's working but it doesn't find the css and js files that has been generated. I'm using like this: <link rel="stylesheet" href="{{ mix('css/app.css') }}"> but can't find.
@dohisev
You dont need to rename any of your files or move them, as long as your hosting provider allowes you to change Document Root, you need to set it to public directory in your project. That's it and it works. Go ahead reset everything you've done, and change DocumentRoot.
If this doesnt help, Let me know which hosting service are you using? maybe, I can help more specifically.
Please or to participate in this conversation.