In this tutorial you will learn about the How to Remove Package In Laravel and its application with practical example.
In this tutorial, I’ll show you how to remove package in laravel.In laravel it is easy to remove uninstall or remove a laravel package.
How to Remove Package In Laravel
In this example, we have already installed the yajra/laravel-datatables-oracle package in our laravel project. Now we will remove yajra/laravel-datatables-oracle package from our laravel project. Please follow this step by step instruction to uninstall or remove laravel package.
Step 1:-
First of all Remove the providers declaration from the config/app.php file
Step 2:-
Now, you need to remove aliases from config/app.php file.
Step 3:-
Next, you have to remove package references from your Controllers, Models, Routes, or any other file.
Step 4:-
If you have published any vendor-related files then manually delete them.
Step 5:-
Run following command with your vendor and package name to remove the package from the vendor folder:
Example:-
1 2 |
composer remove yajra/laravel-datatables-oracle php artisan config:clear |