Download the PHP package simonmarcellinden/mediable without Composer
On this page you can find all versions of the php package simonmarcellinden/mediable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download simonmarcellinden/mediable
More information about simonmarcellinden/mediable
Files in simonmarcellinden/mediable
Package mediable
Short Description Package for upload and store any media files.
License MIT
Homepage https://github.com/simonmarcellinden/mediable
Informations about the package mediable
Mediable for Laravel/Lumen
Laravel-Mediable is a package for easily uploading and attaching media files to models with Laravel/Lumen.
Installation
Via Composer
Register the package's service provider in config/app.php. In Laravel versions 5.5 and beyond, this step can be skipped if package auto-discovery is enabled.
Open and add the service provider to bootstrap/app.php
Publish the configurations
Run this on the command line from the root of your project:
Run the migrations to add the required tables to your database.
Example Usage
Example if you upload need a model for Images
Create a eloquent Model and Controller
Extend your eloquent model with the model from this package.
Extend your controller with the package controller and specify the eloquent model to be used in the controller.
Configure the default routes
If you need a many to many relation add the follow code to your media model.
And add the follow code to your Elequent model
Change log
Please see the changelog for more information on what has changed recently.
Testing
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.