PHP code example of alberto-bottarini / nova-image-with-thumbs
1. Go to this page and download the library: Download alberto-bottarini/nova-image-with-thumbs 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/ */
alberto-bottarini / nova-image-with-thumbs example snippets
NovaImageWithThumbs::make('Image', 'image')
->thumbs([
['name' => 'thumbnail', 'w' => 200, 'h' => 100, 'method' => 'fit'],
])
->disk('public')
->path('images-from-nova')
->prunable()
->hideFromIndex(),
Image::make('Thumbnail', 'thumbnail')
->disk('public')
->path('images-from-nova')
->exceptOnForms()