Category: Laravel

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?
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Community Partners