Update dependencies and configuration for Laravel project; added Filament support, modified .gitignore, and adjusted welcome page links.
This commit is contained in:
1 parent
aa3b31c1a1
commit
cdb5cbcb18
82 files changed
+3723
-9
No files matched your search
@@ -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