A
A
Alexander Shvedov2020-04-22 18:52:00
Laravel
Alexander Shvedov, 2020-04-22 18:52:00

Laravel how to call accessors when getting a model?

Laravel how to call accessors when getting a model? To avoid duplicating code. It's just that the controllers prepare the data and send it to the front in the form of json and there is no way to call the accessor in the view

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question