thaile / media
There is no license information available for the latest version (dev-master) of this package.
The Laravel Framework Plugin.
Package info
github.com/thaile0101/thaile-dropzon-media
Language:JavaScript
pkg:composer/thaile/media
dev-master
2018-11-30 10:01 UTC
Requires
- php: >=5.6.4
- intervention/image: 2.*
This package is not auto-updated.
Last update: 2026-03-02 03:19:30 UTC
README
Media Package for Laravel 5.5+
Installation
-
Add a Composer dependency and install the package.
composer require thaile/media
-
Edit config/app.php.
Add service providers
\ThaiLe\Media\Providers\MediaServiceProvider::class, Intervention\Image\ImageServiceProvider::class,
And add class aliases
'Image' => Intervention\Image\Facades\Image::class,
-
Publish the Media configuration and assets.
php artisan vendor:publish --tag=media
This will publish assets to
public/js.
Configuring Authentication
A basic middleware that is guest or the auth :
// config/media.php $config['authentication'] = 'guest'
Usage
Add route to routes/web.php
Route::get('image/show', '\ThaiLe\Media\Controllers\MediaController@show');