Skip to content
Discussion options

You must be logged in to vote

Hello @prescriptionlifeline

if you have your data loaded in the model (as part of a database column, or you manually add it with $appends https://laravel.com/docs/11.x/eloquent-serialization#appending-values-to-json ), you can just do:

CRUD::column('currentDues.amountPaid');
CRUD::column('currentDues.yourComputedColumnName');

Another thing that I highly advise you to avoid having unexpected issues, or having to do additional configurations to the framework, it to use the conventions.
Laravel conventions is to name relation_id, so user_id instead of userId.

Cheers

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by prescriptionlifeline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants