# Installation

composer require moirei/laravel-media-library

# Prepare the database

php artisan vendor:publish --tag=media-library-migrations

Then run the migrations

php artisan migrate

Setup symbolic links in order to out url access to local public storage.

php artisan storage:link

# Scheduling

For auto clean commands to run, be sure to setup the scheduler.

If you haven't already started Laravel scheduler, you'll need to add the following Cron entry to your server.

* * * * * php artisan schedule:run >> /dev/null 2>&1