BBQfun
BBQfun
FFilament
Created by BBQfun on 3/21/2025 in #❓┊help
How to auto disable table grouping if there has any sorting column active?
because the table has a count column based on relation, if i sort by the count column, the group shows on each row
2 replies
FFilament
Created by BBQfun on 3/20/2025 in #❓┊help
How to modify data before validation in simple(modal) resource
beforeValidate() is working on normal resource page, but it didn't work on simple(modal) resource i can't see dd() message after submit the form in the modal
class ManagePosts extends ManageRecords
{
protected function beforeValidate(): void
{
dd('hello');

if (isset($this->data['title']) && is_string($this->data['title'])) {
$this->data['title'] = Str::squish($this->data['title']);
}
}
}
class ManagePosts extends ManageRecords
{
protected function beforeValidate(): void
{
dd('hello');

if (isset($this->data['title']) && is_string($this->data['title'])) {
$this->data['title'] = Str::squish($this->data['title']);
}
}
}
4 replies