zydnrbrn
zydnrbrn
FFilament
Created by arul on 12/19/2024 in #❓┊help
I have projek. In docker domain location exp : https://tas.dev.com/tes2/thismyweb canot open admin
pake web server apa? apakah pake load balancer?
8 replies
FFilament
Created by giro on 12/2/2024 in #❓┊help
Get data from custom form field
thanks sirr i need thissss
11 replies
FFilament
Created by arul on 12/19/2024 in #❓┊help
I have projek. In docker domain location exp : https://tas.dev.com/tes2/thismyweb canot open admin
maksudnya apa bg
8 replies
FFilament
Created by zydnrbrn on 12/19/2024 in #❓┊help
Dynamic badge blade color
No description
7 replies
FFilament
Created by zydnrbrn on 12/19/2024 in #❓┊help
Dynamic badge blade color
No description
7 replies
FFilament
Created by zydnrbrn on 12/19/2024 in #❓┊help
Dynamic badge blade color
No description
7 replies
FFilament
Created by giro on 12/2/2024 in #❓┊help
Get data from custom form field
How can i see detailed docs about this method or related method like this sir?
11 replies
FFilament
Created by md sheik on 12/12/2024 in #❓┊help
Recommendations for Load Testing Tools for Filament Application
When jmeter or gatling has built-in feature that load testing based on HTTP Request, on your case for load testing Login process, we can send form request to the login endpoint, for more detailed technique you can read more on the docs https://gatling.io/blog/gatling-credentials or this articles for jmeter https://webkul.com/blog/load-testing-using-jmeter/
5 replies
FFilament
Created by zydnrbrn on 12/13/2024 in #❓┊help
Adding actions modal on getHeaderActions
Im use ViewRecord, would it be better if i changed it to custom view or custom page?
8 replies
FFilament
Created by zydnrbrn on 12/13/2024 in #❓┊help
Adding actions modal on getHeaderActions
sorry i missed the array for that example 🤣
8 replies
FFilament
Created by zydnrbrn on 12/13/2024 in #❓┊help
Adding actions modal on getHeaderActions
here is error from console
"Could not find Livewire component in DOM tree"
"Could not find Livewire component in DOM tree"
8 replies
FFilament
Created by md sheik on 12/12/2024 in #❓┊help
Recommendations for Load Testing Tools for Filament Application
jmeter and gatling
5 replies
FFilament
Created by Cristina on 10/18/2024 in #❓┊help
How have EditPage works both as modal and a page
yeahh sometime we can't totally implement reusable code on filament... as far as i know, but i think small effort for other necessary actions is doesn't matter to our target features right?
19 replies
FFilament
Created by Cristina on 10/18/2024 in #❓┊help
How have EditPage works both as modal and a page
No description
19 replies
FFilament
Created by Cristina on 10/18/2024 in #❓┊help
How have EditPage works both as modal and a page
that working on me, the example code is like this:
public static function getFormBannerSchema(): array
{
return [
Forms\Components\Select::make('parent_id')
->label('Parent Category')
->options(BannerCategory::all()->pluck('name', 'id'))
->searchable()
->nullable()
->columnSpan('full'),

Forms\Components\TextInput::make('name')
->required()
->maxLength(255)
->live(onBlur: true)
->afterStateUpdated(fn(string $operation, $state, Forms\Set $set) => $operation === 'create' ? $set('slug', Str::slug($state)) : null),

Forms\Components\TextInput::make('slug')
->disabled()
->dehydrated()
->required()
->maxLength(255)
->unique(BannerCategory::class, 'slug', ignoreRecord: true),

Forms\Components\MarkdownEditor::make('description')
->columnSpan('full'),

Forms\Components\Toggle::make('is_active')
->default(true),
];
}

public static function form(Form $form): Form
{
return $form
->schema(
self::getFormBannerSchema()
);
}
public static function getFormBannerSchema(): array
{
return [
Forms\Components\Select::make('parent_id')
->label('Parent Category')
->options(BannerCategory::all()->pluck('name', 'id'))
->searchable()
->nullable()
->columnSpan('full'),

Forms\Components\TextInput::make('name')
->required()
->maxLength(255)
->live(onBlur: true)
->afterStateUpdated(fn(string $operation, $state, Forms\Set $set) => $operation === 'create' ? $set('slug', Str::slug($state)) : null),

Forms\Components\TextInput::make('slug')
->disabled()
->dehydrated()
->required()
->maxLength(255)
->unique(BannerCategory::class, 'slug', ignoreRecord: true),

Forms\Components\MarkdownEditor::make('description')
->columnSpan('full'),

Forms\Components\Toggle::make('is_active')
->default(true),
];
}

public static function form(Form $form): Form
{
return $form
->schema(
self::getFormBannerSchema()
);
}
19 replies
FFilament
Created by Cristina on 10/18/2024 in #❓┊help
How have EditPage works both as modal and a page
but yeah the relationship will working as the Model defined correctly as like the resource
19 replies
FFilament
Created by Cristina on 10/18/2024 in #❓┊help
How have EditPage works both as modal and a page
has you been try static function for defining the form like this?
public static function getUserSchema(): array
{
return [
Forms\Components\TextInput::make('username)
->required,
];
}
public static function getUserSchema(): array
{
return [
Forms\Components\TextInput::make('username)
->required,
];
}
and then you call that on form() function on the resource and call in the modal form too
19 replies
FFilament
Created by gemini.dev on 10/13/2024 in #❓┊help
Add TextArea as a blade component
how about blade input but with same filament textarea styles? the code would be like this
<x-filament::input.wrapper>
<textarea
wire:model="name"
class="filament-input block w-full transition duration-75 rounded-lg shadow-sm focus:ring-primary-500 focus:border-primary-500 border-gray-300"
></textarea>
</x-filament::input.wrapper>
<x-filament::input.wrapper>
<textarea
wire:model="name"
class="filament-input block w-full transition duration-75 rounded-lg shadow-sm focus:ring-primary-500 focus:border-primary-500 border-gray-300"
></textarea>
</x-filament::input.wrapper>
4 replies
FFilament
Created by Cristina on 10/18/2024 in #❓┊help
How have EditPage works both as modal and a page
okayy i got it, and then you will call that edit modal in other page/resource with native filament modal right? but you don't want to define the form field again?
19 replies
FFilament
Created by Cristina on 10/18/2024 in #❓┊help
How have EditPage works both as modal and a page
or if you feel anoyying handling the relationship, have you been try relation manager? i think it will be helpful for you
19 replies