PHP code example of emmanpbarrameda / filament-take-picture-field
1. Go to this page and download the library: Download emmanpbarrameda/filament-take-picture-field 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/ */
emmanpbarrameda / filament-take-picture-field example snippets
use emmanpbarrameda\FilamentTakePictureField\Forms\Components\TakePicture;
// ...
TakePicture::make('camera_test')
->label('Camera Test')
->disk('public')
->directory('uploads/services/payment_receipts_proof')
->visibility('public')
->useModal(true)
->showCameraSelector(true)
->aspect('16:9')
->imageQuality(80)
->shouldDeleteOnEdit(false)
cmd
"C:\Program Files\Google\Chrome\Application\chrome.exe" --user-data-dir="C:\chrome-dev-test" --unsafely-treat-insecure-origin-as-secure=http://127.0.0.1:8000 --disable-web-security