PHP code example of muhammadkazimsadiq / filament-canvas
1. Go to this page and download the library: Download muhammadkazimsadiq/filament-canvas 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/ */
muhammadkazimsadiq / filament-canvas example snippets
return [
/*
|--------------------------------------------------------------------------
| Autosave Interval
|--------------------------------------------------------------------------
|
| Interval in seconds for TLDraw canvas autosave. Set to 0 to disable.
|
*/
'autosave_interval' => 10,
/*
|--------------------------------------------------------------------------
| Max Payload Size
|--------------------------------------------------------------------------
|
| Maximum size in KB for a drawing JSON payload. Default: 5 MB.
|
*/
'max_payload_size' => 5120,
/*
|--------------------------------------------------------------------------
| Drawing Model
|--------------------------------------------------------------------------
|
| The model class used for drawings. You may override this if you extend
| the default Drawing model.
|
*/
'drawing_model' => \MuhammadKazimSadiq\FilamentCanvas\Models\Drawing::class,
];
use MuhammadKazimSadiq\FilamentCanvas\FilamentCanvasPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugins([
FilamentCanvasPlugin::make(),
]);
}