Support the ongoing development of Laravel.io →
Architecture Laravel Views
0

Hello everton3x,

if i can summarize what you mean: You want to format the modle fileds in your view. if so you can use laravel Accessors and Mutators( setters and getters ) to achieve this.

https://laravel.com/docs/11.x/eloquent-mutators#accessors-and-mutators

Do let me know if this solves the problem. Thank you

Last updated by @jenkins 6 months ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.