In this article, we will see how to remove the package from laravel. there are different ways to remove packages from laravel 6, laravel 7, laravel 8, and laravel 9. You can remove packages manually as well as you can remove the packages using the composer command.
So, let's see how to remove the package using the composer command and laravel remove package.
Composer is most useful for managing the package in the laravel application. Using composer you can install, update and remove packages from the laravel application. This is more powerful, fast, and fully compatible with older versions.
You can remove all packages no longer required in your laravel application. So, run the below command and remove the package from the vendor folder.
composer remove vendor/package name
Example:
composer remove laravel/ui
This will remove the line from your compser.json
file and also remove files from the vendor
folder.
After this, we will run the following command.
php artisan config:cache
OR
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear
You can manually remove the package from laravel. So, run the following step and remove the package from the laravel application.
You might also like:
In this post we will learn how to add watermark on image in laravel 8. here we will see example of laravel 8 add waterma...
Jun-23-2021
In this article, we will see laravel where and orWhere condition example. we will give you a very simple example of...
Jan-11-2021
Hello, laravel web developers! In this article, we'll see how to autocomplete a search from a database in larav...
Jun-24-2024
In this article, we will see how to generate barcode using javascript. We will use a javascript plugin to generate...
Nov-01-2022