Skip to content

This package is for keeping the files of different Laravel projects.

License

Notifications You must be signed in to change notification settings

jobmetric/media

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Media for laravel

This package is for keeping the files of different Laravel projects.

Install via composer

Run the following command to pull in the latest version:

composer require jobmetric/media

Add service provider

Add the service provider to the providers array in the config/app.php config file as follows:

'providers' => [

    ...

    JobMetric\Media\Providers\MediaServiceProvider::class,
]

Publish the config

Copy the config file from vendor/jobmetric/media/config/config.php to config folder of your Laravel application and rename it to media.php

Run the following command to publish the package config file:

php artisan vendor:publish --provider="JobMetric\Media\Providers\MediaServiceProvider" --tag="media-config"

You should now have a config/media.php file that allows you to configure the basics of this package.

Publish Migrations

You need to publish the migration to create the medias table:

php artisan vendor:publish --provider="JobMetric\Media\Providers\MediaServiceProvider" --tag="media-migrations"

After that, you need to run migrations.

php artisan migrate

Documentation

About

This package is for keeping the files of different Laravel projects.

Resources

License

Stars

Watchers

Forks