alinandrei's avatar

Barebones Breeze App, I want to extend the Profile but it seems too clustered.

Well even tho the title is self sufficient for this issue..

What I did. Models/User.php now has 17 fillables (first_name, last_name, birth_date, city, and more). Requests/Auth/ProfileUpdateRequests also has now 17 validation rulles..

I think I have clustered the simple approach Breeze had to authenticate and identify a user. My app now has a Profile page long enaugh to make anyone feel like filling divorce papers. How can I avoid this? I don't necessarly mind the front-end part, the form is as long as it has to be, my problem is that the code looks bad and doesn't seem to follow best practices.

Care for some advices? Thanks in advance, Alin

0 likes
4 replies
jlrdw's avatar

I don't see 17 fields as being that many. But you could get essentials only and save then fill out some secondary information.

alinandrei's avatar

I just feel the core of Breeze and Laravel is less beautiful now. I don't like the feeling

Snapey's avatar

Perhaps you can group the settings into profile areas (aligned to a tabbed profile page) and then save each section independently. But it will always be a lot of clutter.

alinandrei's avatar

I might end up extending User Model into a Profile model. This way I will also have better organization for eventual Settings a user would like to have for the app. Thanks for all the help and tips!

Please or to participate in this conversation.