GHOST-117
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
13 replies
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
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
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
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