PHP code example of sakanjo / filament-easy-testings
1. Go to this page and download the library: Download sakanjo/filament-easy-testings 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/ */
sakanjo / filament-easy-testings example snippets
// ...
use SaKanjo\FilamentEasyTestings\EasyTestingPlugin;
use App\Filament\EasyTestings\Presets\MyPreset;
public function panel(Panel $panel): Panel
{
return $panel
->plugin(
EasyTestingPlugin::make()
->preset(MyPreset::make())
);
}
namespace App\Filament\EasyTestings;
use Filament\Forms;
use Filament\Notifications\Notification;
use SaKanjo\FilamentEasyTestings\Pages\TestingsPage;
use SaKanjo\FilamentEasyTestings\Presets\Preset;
class HelloPreset extends Preset
{
public static function schema(): array
{
return [
Forms\Components\Section::make('Say hi')
->persistCollapsed()
->icon('heroicon-m-bolt')
->schema([
Forms\Components\TextInput::make('name')
->label('Name')
->
}