How update laravel project on shared hosting when installed new package
Hi everyone, I just deploy my own laravel project on shared hosting. But after deploy, I continue to develop that project to making it good. I have installed some package such as Maatwebsite/Laravel-Excel to upload simple data to database. But now I faced a problem, how can I run composer-install on my shared hosting(My hosting provider doesn't provide ssh access ). I try to upload 'maatwebsite' folder in my local vendor folder to shared hosting, is not working. Does anyone has this experience or any solution could provide to me? Help is appreciated!
If you don't have SSH, the only option really is FTPing the vendor directory. Just make sure it is going to the right place, since many shared hosting plans make it difficult to serve the site from Laravel's public directory, and to upload files above that directory. Also make sure you are including the composer directory or your class autoloading won't work properly.
I hate to say it, but with the price of VPS hosting from providers like DigitalOcean and Linode, it doesn't make much sense to try and run a Laravel app on shared hosting...
Thanks for your all replies, I will try to delete the delete entire vendor folder and composer.json and re-upload. I not using VPS due to shared hosting got provide cpanel, it's much easier for beginner like me to create custom domain email account, view visitor and etc.