Download the PHP package ronasit/laravel-media without Composer
On this page you can find all versions of the php package ronasit/laravel-media. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-media
Laravel Media plugin
Introduction
This plugin adds the ability for users to work with media files.
Installation
-
Install the package using the following command:
-
Publish the package configuration:
- For Laravel <= 5.5 add
RonasIT\Media\MediaServiceProvider::class
to configapp.providers
list. - Set your project's User model to the
media.classes.user_model
config.
Usage
All media routes, will be automatically registered with the package installation.
You can manually register package routes in any place in your app routes using Route::media()
helper:
In this case automatically registered package routes will fails with the 404
code error.
Disable media routes
If you want to disable the automatically registered routes, you can set the api_enable
option to false in the config/media.php
file:
Customizing
You can register only necessary routes using MediaRouteActionEnum:
Integration with LaravelSwagger
This package includes OpenAPI documentation file. To include it to your project's documentation, you need to register it in the auto-doc.additional_paths
config:
vendor/ronasit/laravel-media/documentation.json
Contributing
Thank you for considering contributing to Laravel Media plugin! The contribution guide can be found in the Contributing guide.
License
Laravel Media plugin is open-sourced software licensed under the MIT license.
All versions of laravel-media with dependencies
laravel/framework Version >=11.44.1
ronasit/laravel-helpers Version >=3.4.5
spatie/laravel-medialibrary Version ^11.8.3
bepsvpt/blurhash Version >=3.0