Xiquita
Xiquita
FFilament
Created by Xiquita on 11/10/2023 in #❓┊help
Create new custom input
Hello friends, is there any way in the resource form to get the user to create their custom input, for example a text input, toggle or check box and it saves to the current model ? That option to create a new input only ceartan user with a specific role could do.
10 replies
FFilament
Created by Xiquita on 11/10/2023 in #❓┊help
Multiple Select on Managing relationships
Hello friends, I have a question, is there any way to set the Managing relationships select as multiple so that it accepts several records at once?
->headerActions([
//Tables\Actions\CreateAction::make(),
Tables\Actions\AttachAction::make()
->recordSelect(
fn (Select $select) => $select->noSearchResultsMessage(__('user.user_resource.search_field')),
)

->preloadRecordSelect()
])
->headerActions([
//Tables\Actions\CreateAction::make(),
Tables\Actions\AttachAction::make()
->recordSelect(
fn (Select $select) => $select->noSearchResultsMessage(__('user.user_resource.search_field')),
)

->preloadRecordSelect()
])
2 replies
FFilament
Created by Xiquita on 11/7/2023 in #❓┊help
Attach Relation Manager
Hello friends, I have a question, how is it that in the attach of a relation manager I attach the same record already registered?
Tables\Actions\AttachAction::make()
->recordSelect(
fn (Select $select) => $select->noSearchResultsMessage(__('equipment.equipment_resource.search_field')),
)
->allowDuplicates()
->color('success')
->preloadRecordSelect()
->form(fn (AttachAction $action): array => [
$action->getRecordSelect(),
Forms\Components\TextInput::make('serial_number')
->numeric()
->minValue(1)
->label(__('construction-equipment.construction_equipment_resource.serial_number'))
->unique(ignoreRecord: true)
->required()
->maxLength(255)
->rule(static function (Forms\Get $get, Forms\Components\Component $component): Closure {
return static function (string $attribute, $value, Closure $fail) use ($get, $component) {
$existingRecord = DB::table('construction_has_equipment')
->where('serial_number', $value)
->exists();

if ($existingRecord) {
$fail(__('construction-equipment.construction_equipment_resource.error'));
}
};
}),
]),
Tables\Actions\AttachAction::make()
->recordSelect(
fn (Select $select) => $select->noSearchResultsMessage(__('equipment.equipment_resource.search_field')),
)
->allowDuplicates()
->color('success')
->preloadRecordSelect()
->form(fn (AttachAction $action): array => [
$action->getRecordSelect(),
Forms\Components\TextInput::make('serial_number')
->numeric()
->minValue(1)
->label(__('construction-equipment.construction_equipment_resource.serial_number'))
->unique(ignoreRecord: true)
->required()
->maxLength(255)
->rule(static function (Forms\Get $get, Forms\Components\Component $component): Closure {
return static function (string $attribute, $value, Closure $fail) use ($get, $component) {
$existingRecord = DB::table('construction_has_equipment')
->where('serial_number', $value)
->exists();

if ($existingRecord) {
$fail(__('construction-equipment.construction_equipment_resource.error'));
}
};
}),
]),
5 replies
FFilament
Created by Xiquita on 10/30/2023 in #❓┊help
Sortable Translate
Hello friends, I have a question, is there any way to translate sortable? Thanks
7 replies
FFilament
Created by Xiquita on 10/27/2023 in #❓┊help
tiptapeditor inside infolist
No description
19 replies
FFilament
Created by Xiquita on 10/26/2023 in #❓┊help
recordSelectSearchColumns on GetRelation
Hello friends, I have a question, I'm in a get relation and I want in an attach action to do a search in the select for the name and for another field in the same table, I tried searching for the field by id and it worked but I wanted to use the name of the field, any solution? Thanks
Tables\Actions\AttachAction::make()
->color('success')
->recordSelectSearchColumns(['name', 'equipmentbrands.name'])
->preloadRecordSelect()
Tables\Actions\AttachAction::make()
->color('success')
->recordSelectSearchColumns(['name', 'equipmentbrands.name'])
->preloadRecordSelect()
I want that equipmentbrands.name to appear in the select search
5 replies
FFilament
Created by Xiquita on 10/25/2023 in #❓┊help
translate relation manager tabs
How to change title with translation in get relation?
2 replies
FFilament
Created by Xiquita on 10/25/2023 in #❓┊help
withPivot()
Hello friends, I made this code and saw on the internet that I had to put ->withPivot('serial_number') but my question is where can I put it? Thanks Tables\Actions\AttachAction::make() ->color('success') ->preloadRecordSelect() ->form(fn (AttachAction $action): array => [ $action->getRecordSelect(), Forms\Components\TextInput::make('serial_number') ->numeric() ->minValue(1) ->label(__('construction-equipment.construction_equipment_resource.serial_number')) ->unique(ignoreRecord: true) ->required() ->maxLength(255), ]),
2 replies
FFilament
Created by Xiquita on 10/25/2023 in #❓┊help
Text Input tel() or email()
Hello friends, is there any way to accept cell phone and email in the same text input? Thanks
13 replies
FFilament
Created by Xiquita on 10/24/2023 in #❓┊help
Select Disable when published
No description
25 replies
FFilament
Created by Xiquita on 10/17/2023 in #❓┊help
Themes brandLogo
Hello friends, I have a problem here, when trying to use the brand logo method, an error appears saying that it does not exist. Any solution? https://filamentphp.com/docs/3.x/panels/themes#adding-a-logo
15 replies
FFilament
Created by Xiquita on 10/16/2023 in #❓┊help
mPDF
Hello friends, I have a question here, How can I use mPDF in a resource action?
3 replies
FFilament
Created by Xiquita on 9/29/2023 in #❓┊help
Socialite Plugin
No description
8 replies
FFilament
Created by Xiquita on 9/27/2023 in #❓┊help
Send mail when create customer
No description
6 replies
FFilament
Created by Xiquita on 9/26/2023 in #❓┊help
Send mail for other customer
No description
10 replies
FFilament
Created by Xiquita on 9/26/2023 in #❓┊help
Image Upload
No description
15 replies
FFilament
Created by Xiquita on 9/25/2023 in #❓┊help
tenantRoutePrefix
Hello, ->tenantRoutePrefix() does not exist? I'm trying to use it but I can't find it
29 replies
FFilament
Created by Xiquita on 9/22/2023 in #❓┊help
Problem SoftDelete
No description
2 replies