Medias library for laravel
On a fresh Laravel (>= v5.4) installation, install the package by running:
composer require helori/laravel-cmsConfigure your application:
// config/app.php
'providers' => [
...
Helori\LaravelMedias\MediasServiceProvider::class,
Intervention\Image\ImageServiceProvider::class,
];
'aliases' => [
...
'Image' => Intervention\Image\Facades\Image::class,
];Run the migrations:
php artisan migratePublish the laravel-cms default assets and Vue components:
php artisan vendor:publish --tag=laravel-medias-assetsAt the time of this writing, Laravel 5.4 ships with the following dependencies pre-configured in your package.json:
"devDependencies": {
"axios": "^0.15.3",
"bootstrap-sass": "^3.3.7",
"cross-env": "^3.2.3",
"jquery": "^3.1.1",
"laravel-mix": "0.*",
"lodash": "^4.17.4",
"vue": "^2.1.10"
}Install these dependencies by running:
npm installInstall additionnal dependencies required by this package:
npm install font-awesome --save-devCompile your assets :
npm run dev