Laravel/PHP Articles

Articles from Laravel/PHP sites on the web

Laravel/PHP Articles
I was listening to recent podcast by Taylor Otwell, Laravel Snippet episode 11, where he touched on the debate in Laravel community on where you should put your code logic – in Controllers, Models, or Services. I tend to prefer a “fat” Model approach. So I follow that pretty strictly, which, I find, makes my Controllers pretty thin, and then I would have pretty beefy Models that have pretty rich logic on them. So, take Forge for example, just assume a hypothetical Site Model, that has a deploy() method. How “thin” are your Controllers and Models?

Sign Up For Our Newsletter

Each Week, We curate the top Laravel/PHP articles, jobs, events and More!

We'll send you a weekly email with the latest Laravel/PHP articles, jobs and events. Please review our Code of Conduct in the meantime. Talk to you soon!