jaocero
jaocero
FFilament
Created by jaocero on 6/16/2024 in #❓┊help
Is there any way to create a custom page but not under in a tenant? Its like a general page
Just like the title, I want to ask how to create a custom page where it doesnt fall to any tenant. I just want to access this page without needing to add the tenant slug or something.
7 replies
FFilament
Created by jaocero on 1/13/2024 in #❓┊help
How to make top navigation be justify between
No description
2 replies
FFilament
Created by jaocero on 12/9/2023 in #❓┊help
Uncaught Snapshot missing on Livewire component with id: 5k8cfyjIWCqpkMXB2LHv
No description
27 replies
FFilament
Created by jaocero on 12/8/2023 in #❓┊help
How do I ignore the minDate() validation if its the default value?
No description
5 replies
FFilament
Created by jaocero on 12/7/2023 in #❓┊help
Is it possible to use another relationship if the current relationship is null?
As what the title says, I want to use an alternative relationship if the current is null:
Tables\Columns\TextColumn::make('company.name')
->label('Organization')
->placeholder('No organization')
->searchable()
->sortable()
->wrap(),
Tables\Columns\TextColumn::make('company.name')
->label('Organization')
->placeholder('No organization')
->searchable()
->sortable()
->wrap(),
if the company.name is null then i will use company.external.name
5 replies
FFilament
Created by jaocero on 12/5/2023 in #❓┊help
How to achieve imagecolumn with textcolumn in one column?
No description
4 replies
FFilament
Created by jaocero on 11/22/2023 in #❓┊help
Change modal submit button color
Is possible to change this color the action button only by not using the ->color() ? If I use that it will also change the color in the table action. I only need to change the color in the submit button
7 replies
FFilament
Created by jaocero on 11/2/2023 in #❓┊help
How to test a simple resource CRUD functionality?
I read the documentation but I can't find any sample how to test the simple resource? In the docs all you need to is to call CreatePost::class from resource page but in the simple resource all you can see is a ManagePost::class . How do I test it? Below code is my test:
it('can create apps', function () {
$mailchimp = App::factory()->make([
'name' => Constant::MAILCHIMP,
'app_code' => Constant::APP_CODE[Constant::MAILCHIMP],
]);

livewire(ManageApps::class)
->fillForm([
'name' => $mailchimp->name,
'app_code' => $mailchimp->app_code,
'description' => $mailchimp->description,
'is_active' => $mailchimp->is_active
])
->call('create')
->assertHasNoFormErrors();

$this->assertDatabaseHas(App::class, [
'title' => $mailchimp->name,
'app_code' => $mailchimp->app_code,
'description' => $mailchimp->description,
'is_active' => $mailchimp->is_active
]);
});
it('can create apps', function () {
$mailchimp = App::factory()->make([
'name' => Constant::MAILCHIMP,
'app_code' => Constant::APP_CODE[Constant::MAILCHIMP],
]);

livewire(ManageApps::class)
->fillForm([
'name' => $mailchimp->name,
'app_code' => $mailchimp->app_code,
'description' => $mailchimp->description,
'is_active' => $mailchimp->is_active
])
->call('create')
->assertHasNoFormErrors();

$this->assertDatabaseHas(App::class, [
'title' => $mailchimp->name,
'app_code' => $mailchimp->app_code,
'description' => $mailchimp->description,
'is_active' => $mailchimp->is_active
]);
});
6 replies
FFilament
Created by jaocero on 10/26/2023 in #❓┊help
How to make two column section using grid?
No description
6 replies
FFilament
Created by jaocero on 10/20/2023 in #❓┊help
How do I disable the tab in tab layout?
This is just a straight forward question, how can I disable the a specific tab is tabs layout?
5 replies
FFilament
Created by jaocero on 10/13/2023 in #❓┊help
Is there any way to not call the api the state is change?
Hi can someone help me how to fix this? The $this->fieldMappingOptions is an external api and I will get the data and make an array with key and value. Now my problem is that whenever I select in my repeater and add new repeater field it will fetch again the api. How do I fetch only once the api?
Forms\Components\Select::make('first_app_fields')
->required()
->options($this->fieldMappingOptions)
->disableOptionWhen(
fn (Get $get, string $value, mixed $state) => collect($get('../../custom_field_mapping'))
->pluck('first_app_fields')
->diff([$state])
->filter()
->contains($value)
)
->reactive(),
Forms\Components\Select::make('first_app_fields')
->required()
->options($this->fieldMappingOptions)
->disableOptionWhen(
fn (Get $get, string $value, mixed $state) => collect($get('../../custom_field_mapping'))
->pluck('first_app_fields')
->diff([$state])
->filter()
->contains($value)
)
->reactive(),
2 replies
FFilament
Created by jaocero on 10/11/2023 in #❓┊help
How to achieve a something info list inside a wizard step?
No description
6 replies
FFilament
Created by jaocero on 9/22/2023 in #❓┊help
How to customize validation rule message?
Hi, I want to customize the message of this particular rule but I can't find it in docs.
Forms\Components\Toggle::make('default')
->label('Make it the default color combination?')
->onColor('success')
->offColor('gray')
->exists(modifyRuleUsing: function (Exists $rule) {
return $rule->where('default', true);
})
->validationAttribute('default')
Forms\Components\Toggle::make('default')
->label('Make it the default color combination?')
->onColor('success')
->offColor('gray')
->exists(modifyRuleUsing: function (Exists $rule) {
return $rule->where('default', true);
})
->validationAttribute('default')
6 replies
FFilament
Created by jaocero on 9/17/2023 in #❓┊help
How to use defaultSort as orderByRaw?
No description
4 replies
FFilament
Created by jaocero on 8/23/2023 in #❓┊help
Is there any way to remove the error after fulfilling the requirements?
Hello is there anyway, for example, I have a text input and if I don't type anything which is required and click the create button it will show an error but how do I remove this error when typing in the text input field?
3 replies
FFilament
Created by jaocero on 8/13/2023 in #❓┊help
Is there any way that action button be disabled in initial load?
I have this code for which I want to disabled:
Actions\Action::make('login')
->icon('heroicon-o-arrows-right-left')
->label('Connect to Notion')
->disabled()
Actions\Action::make('login')
->icon('heroicon-o-arrows-right-left')
->label('Connect to Notion')
->disabled()
Now my problem is it doesnt disabled in initial load but disabled after I click it.
2 replies
FFilament
Created by jaocero on 8/3/2023 in #❓┊help
Override ->registration() in PanelProvider
Anyone how to override this is v3? I don't want to automatically logging in the user after creation.
4 replies
FFilament
Created by jaocero on 5/27/2023 in #❓┊help
[SOLVE] getSearchResultsUsing turns to id number if I use multiple()
2 replies
FFilament
Created by jaocero on 4/22/2023 in #❓┊help
Repeater not getting the reactive () from outside schema
4 replies
FFilament
Created by jaocero on 4/9/2023 in #❓┊help
Use external API for CRUD functionality
Hi, does anyone know how to implement this in admin panel? Example is I want to use an external api which it has a CRUD endpoints. What I'm gonna do is that I want to use the admin panel for this. My initial idea is that for example in Action I want to add there my api
3 replies