PHP code example of aurorawebsoftware / filament-astart
1. Go to this page and download the library: Download aurorawebsoftware/filament-astart 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/ */
aurorawebsoftware / filament-astart example snippets
use AuroraWebSoftware\FilamentAstart\FilamentAstartPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
FilamentAstartPlugin::make(),
]);
}
use AuroraWebSoftware\AAuth\Traits\AAuthUser;
use AuroraWebSoftware\AAuth\Contracts\AAuthUserContract;
class User extends Authenticatable implements AAuthUserContract
{
use AAuthUser;
// Your user model logic...
}
'user_menu_style' => env('ASTART_USER_MENU_STYLE', 'classic'),
// 'classic' = Default Filament user menu
// 'modern' = Enhanced menu with avatar, role badge, org node, theme switcher
use AuroraWebSoftware\FilamentAstart\Forms\Components\UserSelect;
use AuroraWebSoftware\FilamentAstart\Forms\Components\UserMultiSelect;
UserSelect::make('user_id'),
UserMultiSelect::make('user_ids'),
use AuroraWebSoftware\AAuth\Interfaces\AAuthABACModelInterface;
use AuroraWebSoftware\FilamentAstart\Traits\AStartAbacModel;
class Document extends Model implements AAuthABACModelInterface
{
use AStartAbacModel;
public static function getModelType(): string { return 'document'; }
public static function getABACRules(): array { return []; }
}