Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»PHP Framework»How to Remove Package from Laravel (Composer)

    How to Remove Package from Laravel (Composer)

    By RahulJuly 15, 20211 Min Read

    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.

    Advertisement

    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

    Related Posts

    How to enable debug mode in Laravel for specific environments

    Running Laravel Queue Worker as a Systemd Service

    Configuring Nginx for Laravel on Ubuntu & Debian

    Add A Comment

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Implementing a Linux Server Security Audit: Best Practices and Tools
    • cp Command in Linux (Copy Files Like a Pro)
    • 15 Practical Examples of dd Command in Linux
    • dd Command in Linux (Syntax, Options and Use Cases)
    • Iptables: Common Firewall Rules and Commands
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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