Skip to content

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

License

Notifications You must be signed in to change notification settings

drewroberts/media

Repository files navigation

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

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.

Installation

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'),
        ]
    ]
];

Models

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.

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

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

About

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

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Languages