PHP code example of novius / laravel-backpack-slideshow

1. Go to this page and download the library: Download novius/laravel-backpack-slideshow library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

novius / laravel-backpack-slideshow example snippets


\Novius\Backpack\Slideshow\SlideshowServiceProvider::class,
\Spatie\MediaLibrary\MediaLibraryServiceProvider::class,
?start_inline=1
php artisan vendor:publish --provider="Novius\Backpack\Slideshow\SlideshowServiceProvider" --tag="routes"
php artisan vendor:publish --provider="Novius\Backpack\Slideshow\SlideshowServiceProvider" --tag="lang"
php artisan vendor:publish --provider="Novius\Backpack\Slideshow\SlideshowServiceProvider" --tag="migrations"
php artisan vendor:publish --provider="Novius\Backpack\Slideshow\SlideshowServiceProvider" --tag="views"
php artisan vendor:publish --provider="Novius\Backpack\Slideshow\SlideshowServiceProvider" --tag="config"

php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="migrations"

php artisan migrate

<li>
  <a href="{{ route('crud.slideshow.index') }}" title="">
    <i class="fa fa-picture-o"></i>
    <span>{{ trans('backpack_slideshow::slideshow.slideshow') }}</span>
  </a>
</li>

// The function "display" takes one parameter:
//  1. Slug => Identifies the slideshow
 echo \Novius\Backpack\Slideshow\Models\Slideshow::display('slugOfMySlideshow'); 

/resources/views/vendor/laravel-backpack-slideshow/slider.blade.php