3rgo
3rgo
FFilament
Created by Soundmit on 11/21/2023 in #❓┊help
Install Spatie Translatable Plugin
🤣 the mysterious ways of package managers
18 replies
FFilament
Created by Soundmit on 11/21/2023 in #❓┊help
Install Spatie Translatable Plugin
does the composer require works now ?
18 replies
FFilament
Created by Soundmit on 11/21/2023 in #❓┊help
Install Spatie Translatable Plugin
And check the PHP version as well, you require ^8.1, maybe you're on 8.0 or less
18 replies
FFilament
Created by Soundmit on 11/21/2023 in #❓┊help
Install Spatie Translatable Plugin
You can try removing the vendor folder and retrying the composer install
18 replies
FFilament
Created by Soundmit on 11/21/2023 in #❓┊help
Install Spatie Translatable Plugin
Usually when there's a conflict on composer dependencies, at the end of the error message there's the package blocking the resolution. Unfortunately on your error I didn't see it. I'm sorry I can't help you more
18 replies
FFilament
Created by Gush on 11/21/2023 in #❓┊help
get select record on relation manager attach form
how about $get($action->getRecordSelect()->getName())?
11 replies
FFilament
Created by Soundmit on 11/21/2023 in #❓┊help
Install Spatie Translatable Plugin
When you pull from git, you should first do composer install to install the dependencies based on the composer.lock file. Composer update will update the dependencies to the latest version allowed by the constraints. Can you please try doing a composer install, then your composer require command ?
18 replies
FFilament
Created by Gush on 11/21/2023 in #❓┊help
get select record on relation manager attach form
Oh this is the AttachAction from a relation manager ? This is different then. I've never done it, but apparently, you can pass data to the relation manager : https://filamentphp.com/docs/3.x/panels/resources/relation-managers#passing-properties-to-relation-managers
11 replies
FFilament
Created by Soundmit on 11/21/2023 in #❓┊help
Install Spatie Translatable Plugin
did you already do composer install ?
18 replies
FFilament
Created by core on 11/21/2023 in #❓┊help
select not getting live() input
$get is automatically scope to the current repeater item. Please see this section of the documentation on how to access parent field values : https://filamentphp.com/docs/3.x/forms/fields/repeater#using-get-to-access-parent-field-values
3 replies
FFilament
Created by Gush on 11/21/2023 in #❓┊help
get select record on relation manager attach form
You rule function syntax is not correct, it's rules and the function inside should not be static. Then you can use $get :
->rules([fn (Forms\Get $get, Forms\Components\Component $component): Closure =>
function (string $attribute, $value, Closure $fail) use ($get, $component) {

$equipmentID = $get('equipment_id');

$existingRecord = DB::table('construction_has_equipment')
->where('serial_number', $value)
->where('equipment_id', $equipmentID)
->exists();

if ($existingRecord) {
$fail(__('construction-equipment.construction_equipment_resource.error'));
}
}
]),
->rules([fn (Forms\Get $get, Forms\Components\Component $component): Closure =>
function (string $attribute, $value, Closure $fail) use ($get, $component) {

$equipmentID = $get('equipment_id');

$existingRecord = DB::table('construction_has_equipment')
->where('serial_number', $value)
->where('equipment_id', $equipmentID)
->exists();

if ($existingRecord) {
$fail(__('construction-equipment.construction_equipment_resource.error'));
}
}
]),
See https://filamentphp.com/docs/3.x/forms/validation#custom-rules
11 replies
FFilament
Created by Soundmit on 11/21/2023 in #❓┊help
Install Spatie Translatable Plugin
This seems like a conflict version from composer, but we need to see the entire error to help you
18 replies
FFilament
Created by codeartisan on 11/21/2023 in #❓┊help
Custom Table Action
Why didn't you use the ToggleColumn ? https://filamentphp.com/docs/3.x/tables/columns/toggle You can use the lifecycle hook to display the notification
33 replies
FFilament
Created by JoseBravo on 11/20/2023 in #❓┊help
Async status
Is it on a list ? If so, you can maybe - have a data array with the status of each server, and initialized to null values - display the array in a column using the formatState function, - make the action check the status and update the data array, it should refresh the table Not sure this would work, but that's how I would try it
7 replies
FFilament
Created by 3rgo on 11/17/2023 in #❓┊help
Ability to skip validation on form ?
Yeah that's what I did after all
9 replies
FFilament
Created by 3rgo on 11/17/2023 in #❓┊help
Ability to skip validation on form ?
My form is for a grant application. There are a lot of fields, so the applicant can partially fill the form, save a draft, then come back later to finish it
9 replies
FFilament
Created by 3rgo on 9/13/2023 in #❓┊help
Custom widget collapsible section does not work
Thanks for the heads I'll try it ASAP
12 replies
FFilament
Created by 3rgo on 9/13/2023 in #❓┊help
Custom widget collapsible section does not work
Can you link the PR please ? I can upvote it
12 replies
FFilament
Created by 3rgo on 9/13/2023 in #❓┊help
Custom widget collapsible section does not work
FWIW, if I put another section (collapsible) in the content, the child collapse works but not the parent
12 replies