PHP code example of michaeld555 / filament-croppie
1. Go to this page and download the library: Download michaeld555/filament-croppie 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/ */
michaeld555 / filament-croppie example snippets
use Michaeld555\FilamentCroppie\Components\Croppie;
Croppie::make('avatar')
->label('Avatar')
->disk('public')
->directory('avatars');
use Michaeld555\FilamentCroppie\Components\SpatieMediaLibraryCroppie;
SpatieMediaLibraryCroppie::make('avatar')
->collection('portraits')
->viewportType('square');