PHP code example of avexsoft / filament-donkey
1. Go to this page and download the library: Download avexsoft/filament-donkey 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/ */
avexsoft / filament-donkey example snippets
use Avexsoft\FilamentDonkey\FilamentDonkeyPlugin;
->plugins([
FilamentDonkeyPlugin::make(),
])
namespace Avexsoft\FilamentDonkey\Filament\Pages;
use Avexsoft\FilamentDonkey\Filament\Forms\Components\ConfigTextInput;
use Avexsoft\FilamentDonkey\Filament\Forms\Components\ConfigToggle;
use Filament\Schemas\Components\Section;
class ProjectSettings extends ConfigurationPage
{
public static function form(\Filament\Schemas\Schema $schema): \Filament\Schemas\Schema
{
return $schema
->statePath('data')
->schema([
Section::make('Application')
->aside()
->description('Configuration for APP_xxx')
->schema([
ConfigTextInput::make('app.name')
->label('Application name'),
ConfigToggle::make('app.debug')
->label('Application debug mode'),
]),
]);
}
}