PHP code example of laravel-admin-ext / cropper

1. Go to this page and download the library: Download laravel-admin-ext/cropper 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/ */

    

laravel-admin-ext / cropper example snippets



    'extensions' => [

        'cropper' => [
        
            // 如果要关掉这个扩展,设置为false
            'enable' => true,
        ]
    ]

$form->cropper('content','label');

$form->cropper('content','label')->cRatio($width,$height);
bash
php artisan vendor:publish --provider='Encore\Cropper\CropperServiceProvider' --force