dev-master
9999999-devA package which provides simple slideshow
The Requires
by Do Truong Quan
v1.0
1.0.0.0A package which provides simple slideshow
The Requires
by Do Truong Quan
A package which provides simple slideshow
This package provide a simple image slideshow with backend management for Laravel 5 web appliaction., (*1)
Require this package with Composer, (*2)
composer require 'quandt/slider:dev-master'
, (*3)
Add these ServiceProviders to the providers array in app/config/app.php, (*4)
'QuanDT\Slider\SliderServiceProvider',
'Intervention\Image\ImageServiceProvider',
, (*5)
Add this to the aliases array in app/config/app.php:, (*6)
'Image' => 'Intervention\Image\Facades\Image'
, (*7)
You need to copy migration files to /database/migrations folder, using the following artisan command:, (*8)
php artisan vendor:publish --tag=migration --force
, (*9)
Then copy assets to /public folder:, (*10)
php artisan vendor:publish --tag=asset --force
, (*11)
You can override the default views by copying to the resources/views/packages/quandt/slider folder. You can also do that with the following command:, (*12)
php artisan vendor:publish --tag=view --force
, (*13)
You can override the default config too (file config will be copied to /config/slider.php):, (*14)
php artisan vendor:publish --tag=config --force
, (*15)
Run artisan migrate command to create database for this slide:, (*16)
php artisan migrate
, (*17)
First you need to create a slider, access the following url:, (*18)
http://yourwebsite.com/slider
, (*19)
Then you can add items for the slider you just create (assume your slider ID is 1):, (*20)
http://yourwebsite.com/slider-content/create?slider_id=1
, (*21)
After that, you can preview your slider by access this url:, (*22)
http://yourwebsite/slider/display/1
, (*23)
That's it!, (*24)
A package which provides simple slideshow
A package which provides simple slideshow