Latest

Monday, July 10, 2017

How to rollback last vendor publish in laravel

Asked by: EaB


Hi have messed up my project by doing vendor publish here is the command last time i have executed (i'm using LARAVEL 5.4)

php artisan vendor:publish --tag=laravel-notifications

i want to rollback to previous state which was there before this command

what i was trying to do: i wanted to customize reset password email template

Problem: No longer i'm able to see my customized forgot password template and reset password template. but default template is appearing for both(forgot password and reset password).

Question : please help to get my previous state prior to running this command php artisan vendor:publish --tag=laravel-notifications

please help me thanks in advance!!!!

please help me thanks in advance!!!!


Answers

Answered by: Mahesh Bhattarai at 2017-07-11 07:55AM



Got it working... The steps to remove a package from Laravel are:

  1. Remove declaration from composer.json (in "require" section)
  2. Remove Service Provider from "app/config/app.php" (reference in "providers" array)
  3. Remove any Class Aliases from "app/config/app.php"
  4. Remove any references to the package from your code.
  5. Run "composer update vendor/package-name". This will remove the package folder from "vendor" folder and will rebuild composer autoloading map

it will remove the package folder from "Vendor" folder




Source

No comments:

Post a Comment

Adbox