Upgrade Guide

Media module


From 1.22.0 to 1.23.0

events.php configuration file not needed

This file is not needed anymore.

From 1.21.0 to 1.22.0

New configuration file config/asgard.media.events.php

This new configuration file is needed for allowing to include linking media partials on the create views of your forms. It contains will contain arrow of events that the media module will hook into.

Create the file your self in the configuration folder with the following contents.

From 1.17.0 to 1.18.0

Queued jobs

The RefreshThumbnailCommand now uses a queued job as well as a previously queue closure in the FileService class was abstracted to a queued job.

This requires the presence of the abstract Job class in app/Jobs/Job.php.

From 1.16.0 to 1.17.0

Translations have been removed

All translations files were removed from the individual modules and moved to the Translation module. Therefore you will need to require the Translation module in your project. This can be done by running the following command in your project:

composer require asgardcms/translation-module

From 1.15.0 to 1.16.0

New filesystem configuration item

A new filesystem configuration item was added to the media module config file. By default it is set to the local file system.

After updating the media module, you can either set that new configuration key in the Config/asgard.media.config.php file as follows:

'filesystem' => 'local',

Or if you're running version 1.19 or higher of the media module, by running the following command:

php artisan vendor:publish --provider="Modules\Media\Providers\MediaServiceProvider" --force --tag="config"

Mobile Analytics