{"repo":"plank/laravel-mediable","free":true,"listed":false,"github":"https://github.com/plank/laravel-mediable","clone":"git clone https://github.com/plank/laravel-mediable.git","description":"Laravel-Mediable is a package for easily uploading and attaching media files to models with Laravel","language":"PHP","stars":829,"topics":["hacktoberfest","laravel","file-upload","eloquent"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Laravel-Mediable Laravel-Mediable is a package for easily uploading and attaching media files to models with Laravel. Features - Filesystem-driven approach is easily configurable to allow any number of upload directories with different accessibility. Easily restrict uploads by MIME type, extension and/or aggregate type (e.g. image for JPEG, PNG or GIF). - Many-to-many polymorphic relationships allow any number of media to be assigned to any number of other models without any need to modify their schema. - Attach media to models with tags, in order to set and retrieve media for specific purposes, such as 'thumbnail' , 'featured image' , 'gallery' or 'download' . - Integrated support for integration/image for manipulating image files to create variants for different use cases. Example Usage Upload a file to the server, and place it in a directory on the filesystem disk named \"uploads\". This will create a Media record that can be used to refer to the file. Attach the Media to another eloquent model with one or more tags defining their relationship. Retrieve the media from the model by its tag(s). Installation Add the package to your Laravel app using 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. The package comes with a Facade for the image uploader, which you can optionally register as well. In Laravel versions 5.5 and beyond, this step can be skipped if pac","default_branch":null,"files":null,"tree":[],"storefront":"/r/plank","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/plank/laravel-mediable/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}