pratik007kumar / laravel-slider by pratik007kumar

laravel slider with full feacher by using slick slider js plugin
240
6
3
Package Data
Maintainer Username: pratik007kumar
Maintainer Contact: pratik007kumar@gmail.com (Pratik Kumar)
Package Create Date: 2017-07-03
Package Last Update: 2017-07-14
Language: CSS
License: MIT
Last Refreshed: 2024-11-23 03:05:54
Package Statistics
Total Downloads: 240
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 6
Total Watchers: 3
Total Forks: 3
Total Open Issues: 0

laravel Slider

Laravel 5.4 Image Slider

Following are the step to configure Image Slider

Step 1:copy vendor using composer

composer require pratik007kumar/slider

or

"require": {
   
    "pratik007kumar/slider": "dev-master"
}
composer update

step 2: Copy providers to config/app.php

'providers' => [
 // ...
  Collective\Html\HtmlServiceProvider::class,
  Pratik\Slider\SliderServiceProvider::class,
  Barryvdh\Elfinder\ElfinderServiceProvider::class,
 // ...

]


'aliases' => [
    // ...
      'Form' => Collective\Html\FormFacade::class,
      'Html' => Collective\Html\HtmlFacade::class,
      'Input' => Illuminate\Support\Facades\Input::class,

    // ...
  ],

step 3: Run

php artisan vendor:publish

step 4: Run

php artisan elfinder:publish

step 5: Run

php artisan migrate

step 6: create public/uploads folder and set permission 0777

step 7: Copy following array in config/elfinder.php

'dir' => ['uploads'],
'route' => [
    'prefix' => 'elfinder',
    'middleware' => ['web', 'auth'], //Set to null to disable middleware filter
],
'roots' => array(
    array(
        'driver' => 'LocalFileSystem',
        'path'   => __DIR__.'/../public/uploads', 
        'URL'    => './../../uploads', // <-- That dir should be same as above, in path
        'attributes' => array(
            array( 
                'pattern' => '/\/\./',
                'read' => false,
                'write' => false,
                'locked' => true,
                'hidden' => true
            )
        )
    )
),
'options' => array(
    'accessControl' => 'access',
    'uploadAllow' => ['image'],
    'mimeDetect' => 'internal',
    'imgLib'     => 'gd',
    'uploadOrder'=> ['allow', 'deny'],
    'tmbPath' => '.tmb'
    ),

This packager Required Auth login if you don't have Auth login

php artisan make:auth
php artisan migrate

You can change Route prefix using config/slider.php

 'slider_route_prefix' => 'admin',

you can view laravel slider with following link:

www.yourdomain.com/admin/slider or localhost/yourapp/admin/slider

Demo

All Slider Page Create Slider Page Slider Preview Page