edit this page Get Started


From the command line run:

composer require torann/mediasort


Once installed you need to register the service provider with the application. Open up config/app.php and find the providers key.

'providers' => [




For Lumen register the service provider in bootstrap/app.php.


Publish the configurations

Run this on the command line from the root of your project:

php artisan vendor:publish --provider="Torann\MediaSort\MediaSortServiceProvider"

A configuration file will be publish to config/mediasort.php.