T
T
thisall2021-02-10 07:37:37
Laravel
thisall, 2021-02-10 07:37:37

How to work with models?

602362c2f270c399927934.png

If in Laravel, is there a ready solution to get the model ? I received the field already in this formatCategory::find(1)

namejson_decode($category->name, true);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
thisall, 2021-02-10
@thisall

https://laravel.com/docs/6.x/eloquent-mutators - Seems to have found

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question