yangsystem
yangsystem
FFilament
Created by black ka1ser on 8/21/2024 in #❓┊help
im trying to display a simple TextColumn but nothing shows up
14 replies
FFilament
Created by black ka1ser on 8/21/2024 in #❓┊help
im trying to display a simple TextColumn but nothing shows up
ok here is the doc
14 replies
FFilament
Created by black ka1ser on 8/21/2024 in #❓┊help
im trying to display a simple TextColumn but nothing shows up
where success and danger are the color defined in panel config file
14 replies
FFilament
Created by black ka1ser on 8/21/2024 in #❓┊help
im trying to display a simple TextColumn but nothing shows up
->color(function {if ($has_uploaded_receipt == 1) 'green' else 'danger'})
14 replies
FFilament
Created by black ka1ser on 8/21/2024 in #❓┊help
im trying to display a simple TextColumn but nothing shows up
and if you want to alter the color of the field you can do something like
14 replies
FFilament
Created by black ka1ser on 8/21/2024 in #❓┊help
im trying to display a simple TextColumn but nothing shows up
you should have in the database a cell called has_uploaded_receipt of type boolean (1 or 0)
14 replies
FFilament
Created by yangsystem on 8/18/2024 in #❓┊help
Relationship table on modal? or NEW action on table action page?
another question should I do the validation on the action method with classic laravel syntax or should I do the filament validation?
21 replies
FFilament
Created by yangsystem on 8/18/2024 in #❓┊help
Relationship table on modal? or NEW action on table action page?
10q for support
21 replies
FFilament
Created by yangsystem on 8/18/2024 in #❓┊help
Relationship table on modal? or NEW action on table action page?
Action::make('adauga')
->label('Add container')
->icon('heroicon-o-folder-plus')
->form([
Forms\Components\TextInput::make('contracte_id')
->default('1'),
Forms\Components\TextInput::make('container_tip')
->required()
->maxLength(255),
])
->action(function (array $data, Containere $container): void {
$container->contracte_id = $data['contracte_id'];
$container->container_tip = $data['container_tip'];
$container->save();
}),
Action::make('adauga')
->label('Add container')
->icon('heroicon-o-folder-plus')
->form([
Forms\Components\TextInput::make('contracte_id')
->default('1'),
Forms\Components\TextInput::make('container_tip')
->required()
->maxLength(255),
])
->action(function (array $data, Containere $container): void {
$container->contracte_id = $data['contracte_id'];
$container->container_tip = $data['container_tip'];
$container->save();
}),
21 replies
FFilament
Created by yangsystem on 8/18/2024 in #❓┊help
Relationship table on modal? or NEW action on table action page?
it work's like this
21 replies
FFilament
Created by yangsystem on 8/18/2024 in #❓┊help
Relationship table on modal? or NEW action on table action page?
Will try and come back with my problem or with a 10Q
21 replies
FFilament
Created by yangsystem on 8/18/2024 in #❓┊help
Relationship table on modal? or NEW action on table action page?
Action included in the table docs or action on main docs?
21 replies
FFilament
Created by yangsystem on 8/18/2024 in #❓┊help
Relationship table on modal? or NEW action on table action page?
ok. please point me in the right direction on how to create the action to create a new record
21 replies
FFilament
Created by yangsystem on 8/18/2024 in #❓┊help
Relationship table on modal? or NEW action on table action page?
I do not know how to add the action on-click to the green colored "New contracte" near blue "Edit" on the main page that will open a modal with the form that I create in the relationmanager.
21 replies
FFilament
Created by yangsystem on 8/18/2024 in #❓┊help
Relationship table on modal? or NEW action on table action page?
also there is a type there "I need an option to add the RelationManager panel to the modal, when I click edit/view"
21 replies
FFilament
Created by yangsystem on 8/18/2024 in #❓┊help
Relationship table on modal? or NEW action on table action page?
normal page
21 replies
FFilament
Created by yangsystem on 8/18/2024 in #❓┊help
Relationship table on modal? or NEW action on table action page?
modal
21 replies
FFilament
Created by yangsystem on 8/18/2024 in #❓┊help
Relationship table on modal? or NEW action on table action page?
I will like eigter to import the same table to the modal or just to have a button for the action to create a record for that relation
21 replies
FFilament
Created by yangsystem on 8/18/2024 in #❓┊help
Relationship table on modal? or NEW action on table action page?
you have on the simple page below the edit/view the table with the action buttons for the relation.
21 replies