Lederp
Lederp
FFilament
Created by Lederp on 5/13/2024 in #❓┊help
Create resource in specific Panel
Yep already sorted it! Thank you.
5 replies
FFilament
Created by Lederp on 11/22/2023 in #❓┊help
Bulkaction records not always up to date after selecting multiple entries
up
3 replies
FFilament
Created by Lederp on 11/20/2023 in #❓┊help
Return error from ->action
I was able to do this by creating a form first, and setting rules based off that! Thanks for the guidance.
14 replies
FFilament
Created by Lederp on 11/20/2023 in #❓┊help
Return error from ->action
Sadly I cannot see anyway to apply a rule to the action via ->rule
14 replies
FFilament
Created by Lederp on 11/20/2023 in #❓┊help
Return error from ->action
Or even the second option would work too.
14 replies
FFilament
Created by Lederp on 11/20/2023 in #❓┊help
Return error from ->action
How do I use a validation rule within the action? Thanks
14 replies
FFilament
Created by Lederp on 11/20/2023 in #❓┊help
Return error from ->action
I'd like it to work almost like a validation rule, if thats possible.
14 replies
FFilament
Created by Lederp on 11/20/2023 in #❓┊help
Return error from ->action
I don't really like the idea of sending a notification and return before running the action, it feels somewhat of a dirty work around?
14 replies
FFilament
Created by Lederp on 10/5/2023 in #❓┊help
SuccessRedirectURL open in new tab?
Trying to find it but not having any luck, let me know if you can point me in the right direction 🙂
7 replies
FFilament
Created by Chriis on 10/5/2023 in #❓┊help
Can't access data with $get between Wizard steps
Can you share your code as I am using $get for this and having 0 issues.
9 replies
FFilament
Created by Lederp on 10/2/2023 in #❓┊help
Make additional column in table based from the sum of two other columns?
My current plan to be able to summarize is like so:
)->summarize(Summarizer::make()->label('Total Cost')->using(
function (Table $table) {
dd($table->getColumns()['total_cost']);
//echo `<script>console.log($price)</script>`;
//dd($table->getColumn('total_cost')->getState());
}
)),
)->summarize(Summarizer::make()->label('Total Cost')->using(
function (Table $table) {
dd($table->getColumns()['total_cost']);
//echo `<script>console.log($price)</script>`;
//dd($table->getColumn('total_cost')->getState());
}
)),
but I cannot work out how to get each row in the table for this
4 replies
FFilament
Created by Lederp on 10/2/2023 in #❓┊help
Make additional column in table based from the sum of two other columns?
Tables\Columns\TextColumn::make('total_cost')->label('Total Cost')->state(
function (TrafficLogs $record) {
$totalBytes = ($record->bytes_downloaded + $record->bytes_uploaded) / (1024*1024*1024);
$type = explode("_", $record->country)[1];
return "$" . round(cost($type, $totalBytes), 2);
}
Tables\Columns\TextColumn::make('total_cost')->label('Total Cost')->state(
function (TrafficLogs $record) {
$totalBytes = ($record->bytes_downloaded + $record->bytes_uploaded) / (1024*1024*1024);
$type = explode("_", $record->country)[1];
return "$" . round(cost($type, $totalBytes), 2);
}
4 replies
FFilament
Created by Lederp on 10/1/2023 in #❓┊help
Widget on Resource page which updates based on Table data
Brilliant thank you... I obviously can't nagivate the docs well enough lol
6 replies