Laravel Package for opinionated usage of Media (images & videos)

Fund package maintenance!

3.5.0 2021-04-09 16:59 UTC


Latest Version on Packagist Tests Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.


You can install the package via composer:

composer require drewroberts/media

You can publish the config file with:

php artisan vendor:publish --provider="DrewRoberts\Media\MediaServiceProvider" --tag="config"

Add the cloudinary disk to the filesystem config and set the environment variables for your Cloudinary account.

return [
    'disks' => [
        'cloudinary' => [
            'driver' => 'cloudinary',
            'api_key' => env('CLOUDINARY_API_KEY'),
            'api_secret' => env('CLOUDINARY_API_SECRET'),
            'cloud_name' => env('CLOUDINARY_CLOUD_NAME'),


The following models are included in this package:

List of Models

  • Image
  • Tag
  • Video

For each of these models, this package implements an authorization policy that extends the roles and permissions approach of the tipoff/authorization package. The policies for each model in this package are registered through the package and do not need to be registered manually.

The models also have Laravel Nova resources in this package and they are also registered through the package and do not need to be registered manually.


Please see CHANGELOG for more information on what has changed recently.


Please see CONTRIBUTING for details.


If you discover any security related issues, please email instead of using the issue tracker.



The MIT License (MIT). Please see License File for more information.