When you upgrade your Laravel application or doing changes in appliction, then you might want to add new package or remove pacakge from Laravel application. Laravel uses composer package manager to add or remove packages.
You can add new package in Laravel using composer installation command. Suppose you want to install Laravel Passport in your Laravel application.
composer require laravel/passport
This will add all package files into vendor folder. Your application composer.json
file is also updated. Composer manages all package through composer.json file.
In the same way you can remove package from Laravel using composer remove command.
composer remove laravel/passport
This will remove package files from vendor folder and also from composer.json. You can find the pacakges list in composer.json file.
The last step is to remove package class reference from your application e.g., from config/app.php or controller file else it will give class not found error.
Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on [email protected]
Laravel Passport - Create REST API with authentication
Today, in this tutorial we are share wit...Form validation with Jquery Ajax in Laravel 8
Laravel is a great website application f...Please provide a valid cache path
While working on remote server, you migh...Python String Splitlines Method
Python splitlines() is an inbuilt method...How to replace multiple items from a string in PHP
Sometimes working with documents or larg...