GHOST-117
GHOST-117
FFilament
Created by GHOST-117 on 7/10/2024 in #❓┊help
I want to set the time zone of the app according to users timezone
in my app i want to set the time zone according to users login time session(['userTimezone']) globally
9 replies
FFilament
Created by GHOST-117 on 7/8/2024 in #❓┊help
upgrading to laravel 11
No description
5 replies
FFilament
Created by GHOST-117 on 6/29/2024 in #❓┊help
Serialization of 'Closure' is not allowed
While exporting a table to CSV it gives error Serialization of 'Closure' is not allowed
TextColumn::make("stage")
->badge()
->label(__('multifamily-mindset::multifamily-mindset.resources.opportunity.stage'))
->extraAttributes(function($state){
return self::getExtraAttributes($state);
})
public static function getExtraAttributes($state) {

$allStages = [
'lead' => 'color-7',
'customer' => 'color-8',
'student' => 'color-9',
];
return [
'class' => $allStages[$state]
];
}
TextColumn::make("stage")
->badge()
->label(__('multifamily-mindset::multifamily-mindset.resources.opportunity.stage'))
->extraAttributes(function($state){
return self::getExtraAttributes($state);
})
public static function getExtraAttributes($state) {

$allStages = [
'lead' => 'color-7',
'customer' => 'color-8',
'student' => 'color-9',
];
return [
'class' => $allStages[$state]
];
}
10 replies
FFilament
Created by GHOST-117 on 5/20/2024 in #❓┊help
Live update a suffix icon on TextInput
-> i have a text input field for card number
TextInput::make('cardDetails')
->label('Card Number')
->reactive()
->rules([new CreditCardRule])
->required()
TextInput::make('cardDetails')
->label('Card Number')
->reactive()
->rules([new CreditCardRule])
->required()
->suffixIcon('amx') i have custom blade icon
3 replies
FFilament
Created by GHOST-117 on 5/13/2024 in #❓┊help
How to access files from .env
No description
5 replies
FFilament
Created by GHOST-117 on 3/14/2024 in #❓┊help
Delete option inside select field
No description
2 replies
FFilament
Created by GHOST-117 on 2/16/2024 in #❓┊help
Action inside Another Action
I have action inside action for modal payment operation it contain form inside every action but not able to validate any thing it just taking me to the next step without validation is there a way to prevent that and do a validation in each step
Action::make('first')
->requiresConfirmation()
->action(function () {
// ...
})
->extraModalFooterActions([
Action::make('second')
->requiresConfirmation()
->action(function () {
// ...
})
->extraModalFooterActions([
Action::make('third')
->requiresConfirmation()
->action(function () {
// ...
})
->extraModalFooterActions([
Action::make('fourth')
->requiresConfirmation()
->action(function () {
// ...
})
->cancelParentActions('second'),
]),
]),
])
Action::make('first')
->requiresConfirmation()
->action(function () {
// ...
})
->extraModalFooterActions([
Action::make('second')
->requiresConfirmation()
->action(function () {
// ...
})
->extraModalFooterActions([
Action::make('third')
->requiresConfirmation()
->action(function () {
// ...
})
->extraModalFooterActions([
Action::make('fourth')
->requiresConfirmation()
->action(function () {
// ...
})
->cancelParentActions('second'),
]),
]),
])
13 replies
FFilament
Created by GHOST-117 on 2/6/2024 in #❓┊help
Halt modal action
->modalFooterActions([
Action::make('TakePayment')
->form([

]),
])

->modalFooterActions([
Action::make('Process Payment')
->action(function () {

if ($result['success'] == true) {

} else {

}
})
->form([
Placeholder::make('Payment Status')
->content(function () {
return "sucess";
})
->inlineLabel(),


])->modalFooterActions([

]),
]), Action::make('Cancel')
->cancelParentActions('Purchase Workshop modal')
->modalFooterActions([
Action::make('TakePayment')
->form([

]),
])

->modalFooterActions([
Action::make('Process Payment')
->action(function () {

if ($result['success'] == true) {

} else {

}
})
->form([
Placeholder::make('Payment Status')
->content(function () {
return "sucess";
})
->inlineLabel(),


])->modalFooterActions([

]),
]), Action::make('Cancel')
->cancelParentActions('Purchase Workshop modal')
- here i want to halt the process or u can say action until it completed then move to next step - is there a way i can do that
3 replies
FFilament
Created by GHOST-117 on 1/30/2024 in #❓┊help
Multiple collapse dynamic table
No description
1 replies
FFilament
Created by GHOST-117 on 1/30/2024 in #❓┊help
authorizeAccess
I have use protected function authorizeAccess(): void { return; } to give certain part of my application open for every one but in V3 its not working
1 replies
FFilament
Created by GHOST-117 on 1/17/2024 in #❓┊help
Live update
i have a amount field that keep amount and i have a button that pays the amount that has been entered i want to live update the button lable to the input amount TextInput::make('amount'), protected function getFormActions(): array { return [ $this->getSaveFormAction() ->label(function(){ return "Pay Now $" . ;
})
]; }
8 replies
FFilament
Created by GHOST-117 on 1/15/2024 in #❓┊help
Month and Year
No description
15 replies
FFilament
Created by GHOST-117 on 12/7/2023 in #❓┊help
Masking and using palceholder at same time
TextInput::make('amount') ->label('Amount being Charged') ->required() ->placeholder('0.00') ->numeric() ->minValue(1) ->mask(fn (Mask $mask) => $mask->money(prefix: '$', thousandsSeparator: ',')) ]) i want to use placeholder and masking at the same time but when i am using masking the placeholder doesn't work
5 replies
FFilament
Created by GHOST-117 on 9/5/2023 in #❓┊help
table action modal
No description
8 replies
FFilament
Created by GHOST-117 on 8/30/2023 in #❓┊help
Button
19 replies
FFilament
Created by GHOST-117 on 8/25/2023 in #❓┊help
Filter option
I have 4 filter options like Unread, Recents, All and starred . when One filter is active and add another filter like starred it needs to remove the previous filters and only show the records of current active filter but it takes all the filter options as there are checkboxes
2 replies
FFilament
Created by GHOST-117 on 8/18/2023 in #❓┊help
side nav bar style
3 replies
FFilament
Created by GHOST-117 on 8/9/2023 in #❓┊help
toggle grid view
27 replies
FFilament
Created by GHOST-117 on 8/6/2023 in #❓┊help
Laravel Snappy
i am using laravel snappy package for filamnet in my MAC OS getting this error code The exit status code '126'
2 replies
FFilament
Created by GHOST-117 on 8/1/2023 in #❓┊help
Unique with soft delete
public function up(): void { Schema::create('brands', function (Blueprint $table) { $table->id(); $table->string('name'); $table->mediumText('description')->nullable(); $table->softDeletes(); // This line adds the soft delete functionality $table->timestamps(); $table->unique('name','deleted_at'); }); } i am trying to have unique name but i also have soft delete is there is any way ???
3 replies