PHPackages                             ronasit/laravel-media - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. ronasit/laravel-media

ActiveLibrary[Framework](/categories/framework)

ronasit/laravel-media
=====================

A module for working with Media.

0.2.3(3mo ago)12.2k↑27.8%[3 PRs](https://github.com/RonasIT/laravel-media/pulls)1MITPHPPHP ^8.3CI passing

Since May 21Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/RonasIT/laravel-media)[ Packagist](https://packagist.org/packages/ronasit/laravel-media)[ RSS](/packages/ronasit-laravel-media/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (25)Used By (1)

Laravel Media plugin
====================

[](#laravel-media-plugin)

[![Coverage Status](https://camo.githubusercontent.com/6f028b598ae8ab75a83539456d81541bbc18d67559801b7acf69dbecb5935c2f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f526f6e617349542f6c61726176656c2d6d656469612f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/RonasIT/laravel-media?branch=master)

Introduction
------------

[](#introduction)

This plugin adds the ability for users to work with media files.

Installation
------------

[](#installation)

1. Install the package using the following command:

```
composer require ronasit/laravel-media
```

2. Publish the package configuration:

```
php artisan vendor:publish --provider=RonasIT\\Media\\MediaServiceProvider
```

3. For Laravel &lt;= 5.5 add `RonasIT\Media\MediaServiceProvider::class` to config `app.providers` list.
4. Set your project's User model to the `media.classes.user_model` config.

Usage
-----

[](#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:

```
#routes/api.php
