I'll demonstrate how to install the file manager package in a Laravel application in this blog. This package supports the integration of cloud storage and the selection of various files.
This File Manager is simple to setup, and the forthcoming version will have cloud support.

Features :-

  1. Integration of CKEditor, TinyMCE, and Summernote
  2. Independent button
  3. submitting proof
  4. Image scaling and cropping
  5. Multi-user public and private folders
  6. Customizable folder path, middlewares, routes, and views
  7. Offers support for files and images. Every kind operates in a unique directory.
  8. The following localities are supported: ar, bg, de, el, en, es, fa, fr, it, he, hu, nl, pl, pt-BR, pt PT, ro, ru, sv, tr, zh-CN, and zh-TW

I'll provide a complete example of how to incorporate a file management package here. Let's proceed by following the steps below.

Install Laravel App

You can install the fresh Laravel app in this stage. Open a terminal and type the command below.

composer create-project --prefer-dist laravel/laravel blog

Install Unisharp File Manager Package

Installing the file manager package in this Laravel application step. Open a terminal and type the command below.

composer require unisharp/laravel-filemanager

Add Provider and Aliase

You can add providers and aliases in the configuration app file in this phase, so let's open the app.php file and do that.



'Image' => Intervention\Image\Facades\Image::class,

Publish Config File

Using the command below, you can publish the package's configuration and assets in this phase.

php artisan vendor:publish --tag=lfm_config
php artisan vendor:publish --tag=lfm_public

Create symbolic link

Using the command below, you can build a symbolic link in this phase.

php artisan storage:link

Edit .env File

We must alter the .env file in this step to replace APP URL with your localhost URL.



Add Route

Currently, we must build a route to the Laravel application that provides access to the File Manager package. so add the following route by opening your "routes/web.php" file.


Route::group(['prefix' => 'laravel-filemanager', 'middleware' => ['web', 'auth']], function (){

Now that our example is ready to run, use the command below for a quick run:

php artisan serve

You may now open the URL below in your browser after first logging in.


Recommended Posts

View All

Laravel – Where Condition with Two Columns Example

laravel where with two column example, two column where laravel , table column condition in laravel , laravel where column equals column example

Laravel Many to Many Eloquent Relationship

laravel belongs to many tutorials, many to many sync, many to many attach, save many to many relationship, create many to many relationship Laravel

Laravel 9 Send SMS Notification to Mobile Phone Tutorial

Learn how to use the Vonage (nexmo) package in a Laravel application to send an SMS notice to a mobile phone.

Laravel Eloquent Query - Laravel Group By with Order By Desc

You've come to the right place if you're looking for an example of a laravel eloquent group by order by desc.

Install and Use Font Awesome Icons in Laravel 9

laravel 9 install font awesome icons example,how to install font awesome icons in laravel 9,install font awesome icons example,how to install font awe...