This is article, as it is stated in the title of this article is specifically written to explain the steps on how to install Baum for Laravel web-based application framework. The installation of Baum is literally needed for managing nested data such as hierarchical tree. Below is how to install Baum on a project based on Laravel web-based application framework.
1. Install Laravel. The steps on how to install Laravel is shown in an article titled ‘Laravel Install into Directory’ which can be visited in this link.
2. After the directory which is installed with a Laravel web-based framework already created, install Baum by adding the following line into the file named composer.json as shown below :
"require": { "php": ">=7.0.0", "fideloper/proxy": "~3.3", "laravel/framework": "5.5.*", "laravel/tinker": "~1.0" },
Just add the following line :
"baum/baum": "~1.1"
So, the complete lines will be displayed as follows :
"require": { "php": ">=7.0.0", "fideloper/proxy": "~3.3", "laravel/framework": "5.5.*", "laravel/tinker": "~1.0", "baum/baum": "~1.1" },
- Run the following command to install Baum which is already defined in the composer configuration file using ‘composer’ utility :
composer install
The above command execution’s output can be presented below :
user@hostname:/var/www/html/laravel-datatree$ composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them. Nothing to install or update Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover Discovered Package: fideloper/proxy Discovered Package: laravel/tinker Package manifest generated successfully. user@hostname:/var/www/html/laravel-datatree$
If it is not working, since the output from running the above command is displaying none of any process informed Baum is installed. Just run the following command :
composer update
The output is shown below :
user@hostname:/var/www/html/laravel-datatree$ composer update Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 1 install, 0 updates, 0 removals - Installing baum/baum (1.1.1): Loading from cache Writing lock file Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover Discovered Package: fideloper/proxy Discovered Package: laravel/tinker Package manifest generated successfully. user@hostname:/var/www/html/laravel-datatree$
As shown in the above output, there is a process of installing baum. It is shown in the following line :
- Installing baum/baum (1.1.1): Loading from cache
One thought on “How to install Baum for Laravel”