Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»PHP Framework»How to Remove Package from Laravel (Composer)

    How to Remove Package from Laravel (Composer)

    RahulBy RahulMay 19, 20211 Min ReadUpdated:July 15, 2021

    Composer is the most popular way for managing packages in PHP bases applications. Laravel also relies over composer for installing, upgrading and removing packages. Composer 2.0 is the latest version available for installation. This is more powerful, fast and fully compatible with older versions.

    Remove Package from Laravel

    You can remove all packages no longer required from the Laravel application. Use the following command to remove the package from vendor. This will also update composer.json and composer.lock accordingly.

    composer remove vendor/package 
    

    Change vendor/package with the packages name to delete.

    For example, below command will delete doctrine/annotations from Laravel application.

    composer remove doctrine/annotations 
    

    That’s it. You may now need to remove all the references added in the application code. The above instructions can be used with any PHP application using composer for removing packages.

    composer Laravel packages
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous Article[SOLVED] Cron job wget writing files to root directory
    Next Article How to Change SSH Port in Linux

    Related Posts

    How to Install Composer on Ubuntu 22.04

    Updated:June 24, 20223 Mins Read

    How To Install and Use PHP Composer on Debian 11

    Updated:February 16, 20224 Mins Read

    How To Set Up Laravel on Ubuntu 21.04 & 20.10

    Updated:July 15, 20214 Mins Read

    How to Enable Debug Mode in Laravel

    Updated:May 28, 20211 Min Read

    How to Install Laravel 9 on CentOS 8

    Updated:February 16, 20224 Mins Read

    How to Install CodeIgniter on Ubuntu 20.04

    Updated:August 11, 20214 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • Filesystem Hierarchy Structure (FHS) in Linux
    • How to accept user input in Python
    • What is difference between var, let and const in JavaScript?
    • What is CPU? – Definition, Types and Parts
    • What is the /etc/aliases file
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.