PHP code example of riclep / laravel-storyblok-previews
1. Go to this page and download the library: Download riclep/laravel-storyblok-previews 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/ */
riclep / laravel-storyblok-previews example snippets
[
'hero' => [
'selector' => '.hero',
],
'grid' => [
'delay' => 500,
'filename' => 'grid.jpg',
'selector' => ':has(> .grid),
'url' => '/about',
],
];
bash
php artisan vendor:publish --provider="Riclep\StoryblokPreviews\StoryblokPreviewsServiceProvider" --tag="config"