PHP code example of cerealkiller97 / filament-bug-reports
1. Go to this page and download the library: Download cerealkiller97/filament-bug-reports 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/ */
cerealkiller97 / filament-bug-reports example snippets
use CerealKiller97\FilamentBugReports\BugReportsPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugin(
BugReportsPlugin::make()
->authorizeManagementUsing(fn (User $user): bool => $user->isAdmin()),
);
}
bash
php artisan vendor:publish --tag=bug-reports-migrations
php artisan migrate
bash
php artisan vendor:publish --tag=bug-reports-config