PHP code example of daniel-de-wit / nova-paperclip

1. Go to this page and download the library: Download daniel-de-wit/nova-paperclip 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/ */

    

daniel-de-wit / nova-paperclip example snippets




namespace App\Nova;

use DanielDeWit\NovaPaperclip\PaperclipImage;


class MyResource extends Resource
{
    public function fields(Request $request): array
    {
        return [
            PaperclipImage::make('My Paperclip Image', 'image')
                ->mimes(['png'])
                ->width(1080)
                ->height(1080)
                ->rules(
                    '