thaile/media

There is no license information available for the latest version (dev-master) of this package.

The Laravel Framework Plugin.

dev-master 2018-11-30 10:01 UTC

This package is not auto-updated.

Last update: 2024-05-26 19:29:10 UTC


README

68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f76692f392f39312f46435f42617263656c6f6e615f6c6f676f2e737667

Media Package for Laravel 5.5+

Installation

  1. Add a Composer dependency and install the package.

    composer require thaile/media
  2. 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,
  3. 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');