mdixon18 / media-library
Media Library with VueJS
0.1.5
2019-06-07 16:43 UTC
Requires
- php: >=7.1.0
- mdixon18/laravel-medialibrary: ^7.6
Requires (Dev)
- mockery/mockery: ~1.0
- orchestra/database: 3.7.*
- orchestra/testbench: 3.7.*
- phpunit/phpunit: ~7.0
- predis/predis: ^1.1
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.