# Installation 1. Install package - using composer ``` composer require alexusmai/laravel-file-manager ``` For Laravel 5 - 8 use v2.5.4 ``` composer require alexusmai/laravel-file-manager "2.5.4" ``` 2. If you use Laravel 5.4, then add service provider to config/app.php (for the Laravel 5.5 and higher skip this step): ```php Alexusmai\LaravelFileManager\FileManagerServiceProvider::class, ``` 3. Publish configuration file ```bash php artisan vendor:publish --tag=fm-config ``` 4. You can install npm package directly and use it in your vue application - more information about it - [vue-laravel-file-manager](https://github.com/alexusmai/vue-laravel-file-manager) > OR Publish compiled and minimized js and css files ``` php artisan vendor:publish --tag=fm-assets ``` Open the view file where you want to place the application block, and add: * add a csrf token to head block if you did not do it before ``` ``` * For version 3 and higher - the frontend package uses **Bootstrap 5** and **Bootstrap Icons** styles, if you already use it, then you do not need to connect any styles. Otherwise, add - ``` ``` * For old versions - the frontend package uses **Bootstrap 4** and **Font Awesome 5** styles, if you already use it, then you do not need to connect any styles. Otherwise, add - ``` ``` * add file manager styles ``` ``` * add file manager js ``` ``` * For version 3 and higher - add div for application (set application height!) ```
``` * For old versions - add div for application (set application height!) ```