DEV Community

Discussion on: Taking a class-based approach to views in Laravel.

themobiledev profile image
Chris McKay

I like this approach. It's much cleaner and follows the "separation of concerns" methodology. I just can't believe no one came up with it earlier 😁.

slashequip profile image
Sam Jones Author

Thanks Chris 😁, yeah that's the idea to try and pull all that logic (especially naming view variables) away from the controllers and into a dedicated class. 💜