PHP code example of mgamal92 / filament-demo-generator
1. Go to this page and download the library: Download mgamal92/filament-demo-generator 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/ */
mgamal92 / filament-demo-generator example snippets
Mgamal92\FilamentDemoGenerator\Events\DemoDataGenerated
use Mgamal92\FilamentDemoGenerator\Events\DemoDataGenerated;
Event::listen(DemoDataGenerated::class, function ($event) {
logger('Demo generated for: ' . $event->model);
});
bash
php artisan vendor:publish --tag=config --provider="Mgamal92\FilamentDemoGenerator\FilamentDemoGeneratorServiceProvider"