nickolasjadams / megalavania

Special Order Form SAAS Project
0 stars 0 forks source link

Nick - We should organize our views different #23

Closed DarrylHardin closed 3 years ago

DarrylHardin commented 3 years ago

I noticed you had your orders as 'orders' for the main index page and then you had 'orders-create' for the create page. This obviously works and makes sense, but I'm inclined to suggest we create folders instead.

So each one would go in it's own folder.

So instead of view/orders.blade.php we would have view/orders/index.blade.php and for the create it would obviously be similar view/orders/create.blade.php. Between the one you are currently doing and what I'm suggesting there really isn't any difference that I'm aware of, but I like folders as they're easier on the eyes and if we ever needed more views beyond the basics I feel it's more clear on what's going on. The downside could potentially be that you are editing a filed called 'index' thinking it's for some other template. But VS code does a good job in making sure you know what you're on, so it might be a non-issue.

nickolasjadams commented 3 years ago

That's definitely a non-issue. I agree. That's the way it should be done. We'll follow that as a convention. 👍