Answer the question
In order to leave comments, you need to log in
How to make a converter to file in Eloquent?
Good evening community. Is it possible to make an attribute converter from a model $this->image
to a file (similar to the date converter in Carbon)? So that when reading the attribute, the file object would be returned immediately, and not the path to it.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question