Laravel Tutorials

Organizing Snappy

Published

Taylor Otwell:

One of the most common questions we receive from other Laravel users is how to organize a large code base like Snappy. In this post I’ll share a few of the things we do to keep our Laravel code base manageable.

I just started a new side project and have been revisiting the setup described. This organization really works well and the bigger the application grows the more useful the structure is. I’ve also been involved in a few other applications that use the standard models and controllers and it can get nasty fast.

This post is about 6 months old but still as relevant as ever. Also I highly recommend checking out Taylor’s book Laravel 4: Advanced Application Architecture. It’s a short read at 67 pages but lots of great knowledge shared within.

Eric L. Barnes photo

Eric is the creator of Laravel News and has been covering Laravel since 2012.

Sponsored

laravelcloud logo
Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Visit Laravel Cloud

The latest

View all →
Pause Polling in Background Tabs in Inertia.js v3.9 image

Pause Polling in Background Tabs in Inertia.js v3.9

Read article
Look What You Helped Me Build image

Look What You Helped Me Build

Read article
BashBox: A Sandboxed Bash Interpreter for AI Agents in PHP image

BashBox: A Sandboxed Bash Interpreter for AI Agents in PHP

Read article
Running Laravel's Scheduler on Multiple Servers image

Running Laravel's Scheduler on Multiple Servers

Read article
Laravel Fake Assertions Now Accept Property Arrays image

Laravel Fake Assertions Now Accept Property Arrays

Read article
Route::query() and Model defaults() in Laravel 13.35 image

Route::query() and Model defaults() in Laravel 13.35

Read article