Update dependencies and configuration for Laravel project; added Filament support, modified .gitignore, and adjusted welcome page links.
This commit is contained in:
34
app/Filament/Resources/Pilgrims/Schemas/PilgrimForm.php
Normal file
34
app/Filament/Resources/Pilgrims/Schemas/PilgrimForm.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Pilgrims\Schemas;
|
||||
|
||||
use Filament\Forms\Components\DatePicker;
|
||||
use Filament\Forms\Components\FileUpload;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Schemas\Schema;
|
||||
|
||||
class PilgrimForm
|
||||
{
|
||||
public static function configure(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
Select::make('group_id')
|
||||
->relationship('group', 'id')
|
||||
->required(),
|
||||
TextInput::make('first_name')
|
||||
->required(),
|
||||
TextInput::make('last_name')
|
||||
->required(),
|
||||
DatePicker::make('birthdate')
|
||||
->required(),
|
||||
FileUpload::make('image')
|
||||
->image(),
|
||||
FileUpload::make('local_passport')
|
||||
->downloadable(),
|
||||
FileUpload::make('international_passport')
|
||||
->downloadable(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user