How do I do direct treatment on the Laravel model as much set as get?

Asked

Viewed 62 times

1

I am working on a database already populated and I need to do the replacement of , for . and of / for - without having to use the frontend only in the model.

  • 1

    Could you put together a minimal example? Why are these changes? Tell me more about this legacy database

  • for this, you can use the Mutators. Follow the documentation link: Eloquent: Mutators

  • Very Odilon Garcez The Mutators Resonated

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.