We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have some purely informational columns, example
Text::make('User Status', function() { return $this->user->status; })
Adding the field name into Column doesn't appear to attach them.
public function fields(Request $request) { return [ Text::make('Status', function () { return $this->user->status; }), ]; } public function cards(Request $request) { return [ MegaFilter::make([ 'columns' => [ Column::make('Status')->checked(), ] ]) ]; }
Is this a bug, or is it looking for the attribute (i.e. Text::make('Status', 'userStatus'))
Text::make('Status', 'userStatus')
The text was updated successfully, but these errors were encountered:
The attribute is always required, without it, I can not match the column with a field, computed fields has no attributes, so instead of
Text::make('Status', function () { return $this->user->status; }),
you need to do:
Text::make('Status')->resolveUsing(fn()=> $this->user->status) or Text::make('Status', 'user->status') .... Column::make('Status', 'user->status')->checked()
Sorry, something went wrong.
Of course. Thank you, I've been staring at that for too long :)
No branches or pull requests
I have some purely informational columns, example
Adding the field name into Column doesn't appear to attach them.
Is this a bug, or is it looking for the attribute (i.e.
Text::make('Status', 'userStatus')
)The text was updated successfully, but these errors were encountered: