How to remove package from laravel

You can remove package from laravel project using compser remove command. It will remove package from vendor folder and remove package item from composer.json file.

Answers 1
  • Remove package in laravel

    composer remove package/name
    
    0

     

    Step by step instruction to remove package in laravel

     

    1. To remove package in laravel run composer remove command
    composer remove package/name

    You can change the package name that you want to remove. It will remove the line from composer.json and also files from the vendor folder.

     

    2. Delete file from config folder

    File path: config\<packageconfiguration>.php

    Delete file under config folder which is related to package.

     

    3. Delete related tables from database

    Delete tables from the database which are related to the package. You can find the tables name from configuration file which is exists inside config folder.

     

    4. Remove package items from providers and aliases array in config\app.php if exists
  • Back to code snippet queries related laravel