mdixon18/media-library

Media Library with VueJS

0.1.5 2019-06-07 16:43 UTC

This package is auto-updated.

Last update: 2022-06-07 23:55:42 UTC


README

This package has an accompanying vue package that can be found here.

Installation

composer require mdixon18/media-library

This package will automatically register itself.

You can publish the migration with:

php artisan vendor:publish --provider="Mdixon18\MediaLibrary\MediaLibraryServiceProvider" --tag="migrations"

You will then need to migrate in order to create the media table.

php artisan migrate

You can publish the configuration file with:

php artisan vendor:publish --provider="Mdixon18\MediaLibrary\MediaLibraryServiceProvider" --tag="config"

Usage

In order for the API calls to work from the vue component you will need to add our routes to you application.

MediaLibrary::routes();

If you wrap these within any form of route group with a prefix please remember to update the route_path in the config file.