Skip to content

Latest commit

 

History

History
69 lines (47 loc) · 2.07 KB

README.md

File metadata and controls

69 lines (47 loc) · 2.07 KB

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

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

// config/filesystem.php
return [
    ...
    'disks' => [
        ...
        'cloudinary' => [
            'driver' => 'cloudinary',
            'api_key' => env('CLOUDINARY_API_KEY'),
            'api_secret' => env('CLOUDINARY_API_SECRET'),
            'cloud_name' => env('CLOUDINARY_CLOUD_NAME'),
        ]
    ]
];

The migrations will run from the package. You can extend the Models from the package if you need additional classes or functions added to them.

Registering the Nova resources

If you would like to use the Nova resources included with this package, you need to register it manually in your NovaServiceProvider in the boot method.

Nova::resources([
    \DrewRoberts\Media\Nova\Image::class,
    \DrewRoberts\Media\Nova\Tag::class,
    \DrewRoberts\Media\Nova\Video::class,
]);

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.