Jessy
Jessy
FFilament
Created by Jessy on 5/9/2024 in #❓┊help
FileUpload:: ->downloadable()
->downloadable() can only be used with public disk? on local or private is 404, cannot be accessed from the browser
3 replies
FFilament
Created by Jessy on 5/7/2024 in #❓┊help
extraModalFooterActions in EditAction modal
php
protected function getFormActions(): array
{
return [
...parent::getFormActions(),
Action::make('close')
->action('saveAndClose'),
];
}
php
protected function getFormActions(): array
{
return [
...parent::getFormActions(),
Action::make('close')
->action('saveAndClose'),
];
}
how can I do this in the edit modal?
3 replies
FFilament
Created by Jessy on 5/6/2024 in #❓┊help
Wizard goToStep(x)
Is it possible to have a button in a Wizard component, which when pressed will take you to a certain step?
13 replies
FFilament
Created by Jessy on 5/1/2024 in #❓┊help
Form button with relationship
How to have a button(visible if the record has the relationship) that opens the edit form of that relationship. I tried like
php
....ArticleForm
Forms\Components\Actions::make([
Action::make(__('Comment'))
->button()
->form([
....CommentForm
php
....ArticleForm
Forms\Components\Actions::make([
Action::make(__('Comment'))
->button()
->form([
....CommentForm
How to make the relationship? Or is there a better way to do this?
4 replies
FFilament
Created by Jessy on 4/29/2024 in #❓┊help
Custom page route
Which is the way to have on a custom page "Test" (outside of resources) with the url ...'admin/test' and this page remains active while acces 'admin/test/something' ? public static function getPages() seems to be used on a resource
4 replies
FFilament
Created by Jessy on 4/17/2024 in #❓┊help
wizard - hidden last step based on a radio option and save
In a 6-step Wizard component, the last step is hidden if a particular option is chosen in step 5. The problem is that step 6 is hidden, but the next button is not changed to the save button. It only changes if I take one step back and then the next. I didn't have this problem in v2. In v2 when selecting the option the step was hidden and the save button appeared. How can I hide a step and then save if a certain option is selected?
6 replies
FFilament
Created by Jessy on 4/8/2024 in #❓┊help
How to get relationship from a form
$this->form->getState() result in an array with the fields of the form that are no part of a relationship. Is there a function that result in an array of the relationships?
3 replies
FFilament
Created by Jessy on 4/5/2024 in #❓┊help
same relationship on multiple wizard steps
Wizard\Step::make(__('step 2'))
->schema([
Forms\Components\Group::make()
->relationship('article')
->schema([some fileds])
]),
Wizard\Step::make(__('step 3'))
->schema([
Forms\Components\Group::make()
->relationship('article')
->schema([another fields])
]),
...
public function submit(): void
{
$portal = Portal::create($this->form->getState());
$this->form->model($portal)->saveRelationships();
only step 2 is saved
Wizard\Step::make(__('step 2'))
->schema([
Forms\Components\Group::make()
->relationship('article')
->schema([some fileds])
]),
Wizard\Step::make(__('step 3'))
->schema([
Forms\Components\Group::make()
->relationship('article')
->schema([another fields])
]),
...
public function submit(): void
{
$portal = Portal::create($this->form->getState());
$this->form->model($portal)->saveRelationships();
only step 2 is saved
how can I make step 2 and 3 as a single relationship?
2 replies
FFilament
Created by Jessy on 3/28/2024 in #❓┊help
How can I get the value of a field that is not in the relationship
I have a form and in the form a section with a relationship and I need to make a filed visible based on another that is not in that section .
protected function getFormSchema(): array
{
return [ Forms\Components\Toggle::make('display_hp')
->reactive(),
Forms\Components\Group::make()
->relationship('article')
->schema([ TextInput::make('hp')
->visible(fn($get): bool => $get('display_hp')),
)]
];
}
protected function getFormSchema(): array
{
return [ Forms\Components\Toggle::make('display_hp')
->reactive(),
Forms\Components\Group::make()
->relationship('article')
->schema([ TextInput::make('hp')
->visible(fn($get): bool => $get('display_hp')),
)]
];
}
4 replies
FFilament
Created by Jessy on 3/27/2024 in #❓┊help
TagInput suggestions on Chrome
No description
8 replies
FFilament
Created by Jessy on 2/26/2024 in #❓┊help
How to add tooltip to CheckboxList component
Hi, is there a method to add tooltip to a CheckboxList component?
4 replies
FFilament
Created by Jessy on 2/7/2024 in #❓┊help
how to change the title on a custom page?
No description
5 replies
FFilament
Created by Jessy on 2/6/2024 in #❓┊help
How to Upgrade to v3.2?
composer update php artisan filament:upgrade At php artisan about, I have: Filament Version ............... v3.1.47
24 replies
FFilament
Created by Jessy on 1/8/2024 in #❓┊help
how to translate the option in a Select?
Forms\Components\Select::make('website_type_id')
->label(__('Type'))
->options(WebsiteType::all()->pluck('name', 'id'))
->required(),
Forms\Components\Select::make('website_type_id')
->label(__('Type'))
->options(WebsiteType::all()->pluck('name', 'id'))
->required(),
I tried : ->options((WebsiteType::all()->pluck( ('name')), 'id')), but doesn't work.
8 replies
FFilament
Created by Jessy on 10/31/2023 in #❓┊help
how to get edit url for user profile?
->userMenuItems([ 'profile' => MenuItem::make() ->label('Edit profile') ->url(UserResource::getUrl('edit', ['record' => Auth::user()])). I tried this but got error: Target class [hash] does not exist.
5 replies
FFilament
Created by Jessy on 10/27/2023 in #❓┊help
change records per page in admin panel v2
protected function getTableRecordsPerPageSelectOptions(): array { return [10, 25, 50, 100]; } , this fn can be used in livewire component, how to do this in admin panel in v2?
6 replies
FFilament
Created by Jessy on 9/26/2023 in #❓┊help
Filament\Forms\Components\Select::isOptionDisabled():
Argument #2 ($label) must be of type string, null given, called in /../storage/framework/views/a7a61bf937bbbc17b1d5fdc4121e9f173917da9e.php on line 83. Hi. Why I have this error? I just use a Select: Forms\Components\Select::make('category_id') ->options(Category::all()->pluck('name', 'id')),
10 replies
FFilament
Created by Jessy on 8/29/2023 in #❓┊help
after create function
Hi. How is called the fn that allows you to trigger an event after create a record?
3 replies
FFilament
Created by Jessy on 4/10/2023 in #❓┊help
error when edit or create on some resources
36 replies