shojibflamon
shojibflamon
FFilament
Created by Oxalate on 5/3/2023 in #❓┊help
To to plug attribute from preloadRecordSelect RelationManager
public function table(Table $table): Table
{
return $table
->recordTitleAttribute('first_name')
->columns([
TextColumn::make('name')
->label('Username')
->searchable(),
TextColumn::make('first_name')
->label('First Name')
->searchable(),
TextColumn::make('last_name')
->label('Last Name')
->searchable(),
])

->headerActions([
AttachAction::make()
->recordTitle(fn (Model $record): string => "{$record->name} - {$record->last_name}")
->preloadRecordSelect()
->recordSelectSearchColumns(['name', 'first_name', 'last_name'])
->recordSelect(
fn (Select $select) => $select->placeholder('Select User')
->multiple(),
)
->form(fn (AttachAction $action): array => [
$action->getRecordSelect(),
]),
])
->actions([
DetachAction::make(),
])
->bulkActions([
BulkActionGroup::make([
DetachBulkAction::make(),
]),
]);
}
public function table(Table $table): Table
{
return $table
->recordTitleAttribute('first_name')
->columns([
TextColumn::make('name')
->label('Username')
->searchable(),
TextColumn::make('first_name')
->label('First Name')
->searchable(),
TextColumn::make('last_name')
->label('Last Name')
->searchable(),
])

->headerActions([
AttachAction::make()
->recordTitle(fn (Model $record): string => "{$record->name} - {$record->last_name}")
->preloadRecordSelect()
->recordSelectSearchColumns(['name', 'first_name', 'last_name'])
->recordSelect(
fn (Select $select) => $select->placeholder('Select User')
->multiple(),
)
->form(fn (AttachAction $action): array => [
$action->getRecordSelect(),
]),
])
->actions([
DetachAction::make(),
])
->bulkActions([
BulkActionGroup::make([
DetachBulkAction::make(),
]),
]);
}
You can try this. It works for me
12 replies
FFilament
Created by shojibflamon on 1/28/2024 in #❓┊help
3.2 Upgrade Issue
@Miguel García or you can browse base-url/public to check
37 replies
FFilament
Created by shojibflamon on 1/28/2024 in #❓┊help
3.2 Upgrade Issue
I've found out the issue. It's ridiculous. In my project I've moved the file from public/index.php to the root directory previously that's why I was getting those issues. After moving the index.php file to the public directory like the default laravel installation, it works fine. @Miguel García you can try this if you've already do the same think like mine. Thanks
37 replies
FFilament
Created by shojibflamon on 1/28/2024 in #❓┊help
3.2 Upgrade Issue
yes I did several times.
37 replies
FFilament
Created by benzo on 10/10/2023 in #❓┊help
Wizard modal with custom modal content
Yes almost like this. Wanna save as draft in the middle of the larage form. Could you please share your solution so that I can incorporate in my project.
23 replies
FFilament
Created by benzo on 10/10/2023 in #❓┊help
Wizard modal with custom modal content
What is the solution @benzo . Could you please say some more details so that I can achieve this?
23 replies
FFilament
Created by ingmontoya on 9/21/2023 in #❓┊help
Using a Wizard inside a relationManager?
LIke Creating customer & later will create customer profile & finally always update profile.
65 replies
FFilament
Created by ingmontoya on 9/21/2023 in #❓┊help
Using a Wizard inside a relationManager?
Its actually one to one relationship. So first time its create with related table and later always update
65 replies
FFilament
Created by shojibflamon on 10/26/2023 in #❓┊help
Resume Supported Form like Tax submission or Visa Application form
Thanks I am tying. but is there any way to do it using wizard
9 replies
FFilament
Created by shojibflamon on 10/26/2023 in #❓┊help
Resume Supported Form like Tax submission or Visa Application form
Another thing is how can I add all form in a single page. Do you have any suggestion to do that. Actually 10 separate table data have to create in different time.
9 replies
FFilament
Created by shojibflamon on 10/26/2023 in #❓┊help
Resume Supported Form like Tax submission or Visa Application form
but wizard have a problem that I have to add submitAction at the end of the step. But I want to make each step for each table.
9 replies
FFilament
Created by ingmontoya on 9/21/2023 in #❓┊help
Using a Wizard inside a relationManager?
How to make each step submit button in filament wizard so that I can save two table data from one wizard.
65 replies