The default application structure is intended to provide a great starting point for both large and small applications. Of course, you are free to organize your application however you like. Wiggum imposes almost no restrictions on where any given class is located - as long as Composer can autoload the class.

The Root Directory

The App Directory

The app directory should contain the core code of your application. The majority of your application is housed in the app directory. By default, this directory is namespaced under App and is autoloaded by Composer using the PSR-4 autoloading standard.

The Config Directory

The config directory, as the name implies, contains all of your application's configuration files.

The Public Directory

The public directory contains the index.php file, which is the entry point for all requests entering your application and configures autoloading. This directory also houses your assets such as images, JavaScript, and CSS.

The Storage Directory

The public/storage directory may be used to store user-generated files, such as profile avatars, that should be publicly accessible.

The Vendor Directory

The vendor directory contains your Composer dependencies.