Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 4.2 Files to upload after Composer Update

I had a website created in Laravel 4.2, its live and had to make some changes in it. To make these changes I had to use a package that wasn't used before, so I required the package and did composer update.

The new package that I've used, has created a folder inside app/config/packages.

Besides the controllers and views where I've made the changes, what files I'll have to upload now? Composer update command has updated a few packages and downloaded the new one.

I just want to know whether I'll have to re-upload whole site or there are some specific files or folders that I can upload and get the website working perfectly.

like image 512
Jazzbot Avatar asked Jan 27 '26 08:01

Jazzbot


1 Answers

Ok, I have spent good time over this and figured it out.

Changes due to newly installed package:

I used a package to export data to excel Maatwebsite/Laravel-Excel. I had to to add service provider, alias and do composer update. The package created few config files in app/config/packages/maatwebsite folder.

Other Changes:

Apart from above mentioned things, when I did composer update, it updated composer, symphony, monolog, phpoffice and autoload.php inside vendor folder. It also created new folder called maatwebsite inside vendor. Apart from these, the views and controllers I changed myself to export data to excel.

So, I basically uploaded all the following to my website:

  1. controller, views files I changed.
  2. composer.json & composer.lock files.
  3. Files & Folders inside vender (vendor/autoload.php, vendor/composer, vendor/symfony, vendor/phpoffice, vendor/maatwebsite)
  4. Config files of newly installed package i.e. (app/config/packages/maatwebsite)
  5. Finally my app/config/app.php file where I added service provider and alias

And the website is working perfectly fine. So there was no need to upload everything. :)

Hope this will be helpful for others.

like image 147
Jazzbot Avatar answered Jan 28 '26 22:01

Jazzbot



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!