RoseRiyadh
RoseRiyadh
FFilament
Created by RoseRiyadh on 11/3/2024 in #❓┊help
Hot to add customer support help widget
I use drift.com for customer support, I want to add it as a pop up using their code into my admin panel. How do I create it?
3 replies
FFilament
Created by RoseRiyadh on 9/26/2024 in #❓┊help
Caching record in creation
Good day, how do I cache a record when I want to return to it before saving it as a record?
6 replies
FFilament
Created by RoseRiyadh on 12/26/2023 in #❓┊help
Pivot column in many to many relationship - form builder
i have the following form: Forms\Components\Section::make('Linked Businesses') ->schema([ Forms\Components\Select::make('businesses') ->relationship('businesses', 'name') ->multiple() ->disabled(fn ($record) => Auth::user()->role === 'business_owner'), TextInput::make('discount_percentage') // TODO: THIS IS NOT WORKING ->label('Discount Percentage') ->numeric() ->minValue(0) ->maxValue(100) ->required()->disabled(fn ($record) => Auth::user()->role === 'business_owner'), ]), I want to add the TextInput of discount_percentage to the create form so i can save it in the same form when i choose the business, how can i make it possible without having the following approach in the relationship manager: Tables\Actions\AttachAction::make() ->form(fn (AttachAction $action): array => [ $action->getRecordSelect(), Forms\Components\TextInput::make('discount_percentage')->required(), ]) ])
2 replies
FFilament
Created by RoseRiyadh on 12/19/2023 in #❓┊help
importer default column
i really need help, i'm using importing and i need to add with each record the created by id by default to be Auth::id(), how do i do that?
3 replies
FFilament
Created by RoseRiyadh on 12/13/2023 in #❓┊help
Importer: beforesave() hook check
good day, i want to make the following code possible
protected function beforeSave(): void
{
// passing with the data a field that is for created by user
$this->data['created_by'] = Auth::id();
}
protected function beforeSave(): void
{
// passing with the data a field that is for created by user
$this->data['created_by'] = Auth::id();
}
is it correct? because i tried it and it didn't work. how do i make it better?
3 replies