This is a quick list of some extra credit things that you can do when you set up your Statamic app. Not every app needs each of these changes, so pick and choose based on your particular needs.
Some sites don’t require control panel access on Production because all changes are made locally and then pushed to production through some kind of DevOps process. In these cases I like to completely disable the control panel in the production environment. This accomplishes two things: creates a level of security in which your control panel is simply not accessible and also prevents a developer from accidentally making changes on production when they may think they are in their development environment. I’ve never done that, I swear...
Anyhow, in order to disable the cp on production, we will add a simple conditional at the top of the
When you upgrade to Statamic Pro or Enterprise, you get a whole variety of amazing features. One of these is the ability to white label your control panel. Basically you can customize the logo shown in the backend. At first, this seems like a trivial luxury, however I use this to quickly differentiate between environments so I always know immediately where I'm working.
Here's what it looks like:
The simplest way to achieve this is to use Jack Sleight's Lazy Logo, which is a super addon that creates simple text logo from the site name set in your
.env file. You can get the addon here: Lazy Logo - a Statamic Addon.
After you've installed this addon, you can modify the config file that you've generated with the
php please command (see the install information on the Lazy Logo page under Configuration):