Open dnl4 opened 1 year ago
Unfortunately you cant use model casts. I quite remember I saw that in one of the questions that was asked. Your best bet is to use a callback function with a custom view calling a custom method defined on your model that returns the cast(ed) value.
This package doesn't uses model cast? Seems like it does a raw query with
DB::
instead of uses Eloquent models.