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.
First of all Remove the providers declaration from the config/app.php file
Now, you need to remove aliases from config/app.php file.
Next, you have to remove package references from your Controllers, Models, Routes, or any other file.
If you have published any vendor-related files then manually delete them.
Run following command with your vendor and package name to remove the package from the vendor folder:
composer remove yajra/laravel-datatables-oracle
php artisan config:clear