codeartisan
codeartisan
FFilament
Created by codeartisan on 7/31/2024 in #❓┊help
Column Grouping
How can we group column headers in filament php
3 replies
FFilament
Created by codeartisan on 7/30/2024 in #❓┊help
Table data aggregation
No description
2 replies
FFilament
Created by codeartisan on 7/20/2024 in #❓┊help
How to load date into collection from a modal or an external api
I am using @Lara Zeus form builder but some data is too much and i cannot type all the options in the collection so I have seeded the data into a modal so that I reference in the questionnaire.How can pull that data from the modal?
5 replies
FFilament
Created by codeartisan on 7/18/2024 in #❓┊help
Filament App slow in production
I recently deployed a filament app on shared hosting(cpanel) but its very slow (mostly the response time) What could be the issue?
8 replies
FFilament
Created by codeartisan on 7/17/2024 in #❓┊help
How to redirect to a questionnaire when a user logins orr creates an account
I used @Lara Zeus form builder package to create a questionnaire that requires a user to login and answer then I added basic breeze starter for authentication (login and register) so a user is able to register so. How can I redirect to that questionnaire after a user logins or registers?
8 replies
FFilament
Created by codeartisan on 7/16/2024 in #❓┊help
How to handle data from an external api in a filament table
Does filament allow showing of data that is from an external api in the table
37 replies
FFilament
Created by codeartisan on 7/15/2024 in #❓┊help
Sharing a questionnaire
I want to create dynamic form using @Lara Zeus form builder but this form is more of a questionanire I need to copy and share the link to people to answer through am kindly asking id thats possible
125 replies
FFilament
Created by codeartisan on 7/14/2024 in #❓┊help
Copy full url in filament and livewire
I added filament table component to my livewire works fine but I need to implement a copy full url functionality
4 replies
FFilament
Created by codeartisan on 7/13/2024 in #❓┊help
Setup filament in custom livewire project
Help me with the link that shows how to setup filament in a custom livewire project I cannot find it
5 replies
FFilament
Created by codeartisan on 5/13/2024 in #❓┊help
Use filament in wirelive
Help me with the link to documentation of how i can use filament in livewire
6 replies
FFilament
Created by codeartisan on 5/2/2024 in #❓┊help
Auto increment column
Am using livewire and filament but I want to add a column that is auto generated with the numbers incrementing
Tables\Columns\TextColumn::make('date')
->date()
->label("Date")
->copyable()
->sortable(),
Tables\Columns\TextColumn::make('customer.name')
->searchable()
->sortable()
->copyable()
->label("Customer Name")
->sortable(),
Tables\Columns\TextColumn::make('coffee.name')
->searchable()
->sortable()
->copyable()
->label("Coffee Type")
->sortable(),
Tables\Columns\TextColumn::make('mc')
->numeric()
->sortable()
->label("MC")
->searchable()
->sortable(),
Tables\Columns\TextColumn::make('date')
->date()
->label("Date")
->copyable()
->sortable(),
Tables\Columns\TextColumn::make('customer.name')
->searchable()
->sortable()
->copyable()
->label("Customer Name")
->sortable(),
Tables\Columns\TextColumn::make('coffee.name')
->searchable()
->sortable()
->copyable()
->label("Coffee Type")
->sortable(),
Tables\Columns\TextColumn::make('mc')
->numeric()
->sortable()
->label("MC")
->searchable()
->sortable(),
6 replies
FFilament
Created by codeartisan on 4/26/2024 in #❓┊help
Join 3 tables
I want to write a query that joins 3 tables in filament that are less related
6 replies
FFilament
Created by codeartisan on 4/26/2024 in #❓┊help
Create a resume like builder in filament php
I want to create a resume builder using filament just asking if that is possible
5 replies
FFilament
Created by codeartisan on 4/7/2024 in #❓┊help
Create an email like table using filament
No description
5 replies
FFilament
Created by codeartisan on 4/1/2024 in #❓┊help
Dynamically create a column in the
Tables\Columns\TextColumn::make('date')
->date()
->sortable(),
Tables\Columns\TextColumn::make('user_amount')
->searchable()
->toggleable()
->sortable()
->label('Money from Safe'),
Tables\Columns\TextColumn::make('system_amount')
->searchable()
->toggleable()
->sortable()
->label('System Amount')
->sortable(),
Tables\Columns\TextColumn::make('difference')
->label('Difference')
->formatStateUsing(function (Model $record) {
die($record);
return $record->user_amount - $record->system_amount;
}),
Tables\Columns\TextColumn::make('type')
->searchable(),
Tables\Columns\TextColumn::make('date')
->date()
->sortable(),
Tables\Columns\TextColumn::make('user_amount')
->searchable()
->toggleable()
->sortable()
->label('Money from Safe'),
Tables\Columns\TextColumn::make('system_amount')
->searchable()
->toggleable()
->sortable()
->label('System Amount')
->sortable(),
Tables\Columns\TextColumn::make('difference')
->label('Difference')
->formatStateUsing(function (Model $record) {
die($record);
return $record->user_amount - $record->system_amount;
}),
Tables\Columns\TextColumn::make('type')
->searchable(),
I want to create a field called difference
22 replies
FFilament
Created by codeartisan on 3/28/2024 in #❓┊help
FormatUsingState is null on a select relationship
Forms\Components\Select::make('sponsor_id')
->relationship('sponsor', 'first_name')
->native(false)
->formatStateUsing(function ($state, $record) {
//console.log($record);
dd($state);
return $record->first_name . ' ' . $record->second_name;
})
->label("Sponsor Name")
->searchable()
->preload(),
Forms\Components\Select::make('sponsor_id')
->relationship('sponsor', 'first_name')
->native(false)
->formatStateUsing(function ($state, $record) {
//console.log($record);
dd($state);
return $record->first_name . ' ' . $record->second_name;
})
->label("Sponsor Name")
->searchable()
->preload(),
5 replies
FFilament
Created by codeartisan on 3/26/2024 in #❓┊help
Getting access to the request object in filament table actions
When an action is performed I need to log the action but at some point I need to get access the request object
public function createAudit(Request $request, $description, $event_type)
{
return AuditLog::create([
'user_id' => auth()->id(),
'description' => $description,
'event_type' => $event_type,
'business_id' => auth()->user()->business->id,
'branch_id' => auth()->user()->branch->id,
'date' => Carbon::now(),
'ip_address' => $request->ip(),
'user_agent' => $request->userAgent(),
'method' => $request->method(),
]);
}
public function createAudit(Request $request, $description, $event_type)
{
return AuditLog::create([
'user_id' => auth()->id(),
'description' => $description,
'event_type' => $event_type,
'business_id' => auth()->user()->business->id,
'branch_id' => auth()->user()->branch->id,
'date' => Carbon::now(),
'ip_address' => $request->ip(),
'user_agent' => $request->userAgent(),
'method' => $request->method(),
]);
}
5 replies
FFilament
Created by codeartisan on 3/24/2024 in #❓┊help
Pick data from 2 tables and display it to the user
I want to pick data from 2 tables and create one final table which am to display to the user .How can I do that in filament?
4 replies
FFilament
Created by codeartisan on 3/22/2024 in #❓┊help
Create default filter to be today
I have a table and I want to make the default filter to be today so that today's record are showned initially
11 replies
FFilament
Created by codeartisan on 3/22/2024 in #❓┊help
Export Data Automatically
I have export buttons on my tables but I want these buttons to start exporting automatically once pressed
2 replies