__Dementor
__Dementor
FFilament
Created by __Dementor on 2/14/2025 in #❓┊help
Mailtrap provider issue
Good day, I have added a library to send emails after mailtrap api, while it does not work to send emails for example to reset the password. A message pops up that the email was sent, but it does not reach the mailbox. Sending mails through the mail:to()->send() facade works fine.
5 replies
FFilament
Created by __Dementor on 1/27/2025 in #❓┊help
Larger screen adjustment
Good day, I need to make an adjustment on the site for larger screen resolutions. Currently customers complain that on screens like 2560x1440p the elements are too small making it poor to see things. How can I do this?
8 replies
FFilament
Created by __Dementor on 1/27/2025 in #❓┊help
Moving columns in table
Good day, I would like to make the page move the columns of the table according to my preference. How can I do it? Is there any ready-made plugin with such solution? Maybe AdvancedTables has it?
6 replies
FFilament
Created by __Dementor on 1/21/2025 in #❓┊help
RepeatableEntry relationship
Hello, I have a infolist code
RepeatableEntry::make('attachments')
->schema([
TextEntry::make('file')
->action(Action::make('download_file')->action(function () {
??? return Storage::download(path);
})),
])->columns(12)->columnSpan(4),
RepeatableEntry::make('attachments')
->schema([
TextEntry::make('file')
->action(Action::make('download_file')->action(function () {
??? return Storage::download(path);
})),
])->columns(12)->columnSpan(4),
I would like to make it download a file when clicked but I can't get to the file. I can get Job model in function but in Job model I have a attachments relation where I have all attachment files. How can I get to just this one file and not all of them?
5 replies
FFilament
Created by __Dementor on 1/21/2025 in #❓┊help
SelectFilter doesn not work like I want
Hello I have a select filter
Tables\Filters\SelectFilter::make('status_filter')
->options(JobStatusEnum::asSelectArray())
->modifyQueryUsing(function (mixed $state, Builder $query): Builder {
return $query->where('status', $state);
}),
Tables\Filters\SelectFilter::make('status_filter')
->options(JobStatusEnum::asSelectArray())
->modifyQueryUsing(function (mixed $state, Builder $query): Builder {
return $query->where('status', $state);
}),
And it's work, but when I not have any selected option I dont have a any record in table. How I can fix them?
6 replies
FFilament
Created by __Dementor on 6/9/2024 in #❓┊help
Repeater have problem
Hi I have create depot delivery form.
return $form
->schema([
Tabs::make()
->tabs([

Tabs\Tab::make('General')
->schema([

Forms\Components\Select::make('depot_id')
->label(__('depot_deliveries.create.depot'))
->required()
->columnSpanFull()
->relationship('depot', 'name', function ($query) {
return $query->where('active', true);
}),

Forms\Components\TextInput::make('invoice_number')
->label(__('depot_deliveries.create.invoice_number'))
->required()
->columnSpanFull()
->maxLength(255),

Forms\Components\DateTimePicker::make('delivery_date')
->required(),

]),

Tabs\Tab::make('Products')
->schema([

Forms\Components\Repeater::make('products')
->required()
->schema([

Forms\Components\Select::make('product_id')
->label(__('depot_deliveries.create.product_id'))
->relationship('products', 'name')
->required(),

Forms\Components\TextInput::make('quantity')
->label(__('depot_deliveries.create.product_quantity'))
->numeric()
->required(),

Forms\Components\TextInput::make('price')
->label(__('depot_deliveries.create.product_price'))
->numeric()
->required(),

])
->columns(3)
->collapsible(),

]),

])->columnSpanFull(),
]);
return $form
->schema([
Tabs::make()
->tabs([

Tabs\Tab::make('General')
->schema([

Forms\Components\Select::make('depot_id')
->label(__('depot_deliveries.create.depot'))
->required()
->columnSpanFull()
->relationship('depot', 'name', function ($query) {
return $query->where('active', true);
}),

Forms\Components\TextInput::make('invoice_number')
->label(__('depot_deliveries.create.invoice_number'))
->required()
->columnSpanFull()
->maxLength(255),

Forms\Components\DateTimePicker::make('delivery_date')
->required(),

]),

Tabs\Tab::make('Products')
->schema([

Forms\Components\Repeater::make('products')
->required()
->schema([

Forms\Components\Select::make('product_id')
->label(__('depot_deliveries.create.product_id'))
->relationship('products', 'name')
->required(),

Forms\Components\TextInput::make('quantity')
->label(__('depot_deliveries.create.product_quantity'))
->numeric()
->required(),

Forms\Components\TextInput::make('price')
->label(__('depot_deliveries.create.product_price'))
->numeric()
->required(),

])
->columns(3)
->collapsible(),

]),

])->columnSpanFull(),
]);
After I send form I have error (photo). How I can resolve this? Products is a relationship, I have table delivery_products for this products.
28 replies
FFilament
Created by __Dementor on 5/11/2024 in #❓┊help
Grid in widgets
No description
7 replies
FFilament
Created by __Dementor on 3/19/2024 in #❓┊help
Move items in menu
No description
7 replies
FFilament
Created by __Dementor on 2/2/2024 in #❓┊help
How disable normal user create a resource for admins
Hi, How I can disable user with a normal role to create resource for admin role?
2 replies
FFilament
Created by __Dementor on 11/29/2023 in #❓┊help
Filament form in view
Hi! I can use a filament resource form in view? I want make recruitment and I need form in view for quest users.
3 replies