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 config/statamic/cp.php
file.
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):
Often times, there are little things that you will want to change about the Control Panel that will increase usability. One of the things that I like to do is force minimum sizes for input fields within the Grid Fieldtype. This helps when I need to add more than a couple columns within a Grid field. Here's how it looks before and after:
In order to accomplish this, we will need to create a new css file and then tell Statamic where to look for it. Statamic ships with the necessary code for this, so we will only need to uncomment a line in app/Providers/AppServiceProvider.php.
Feel free to pick and choose from my default control panel css overrides (below) or write your own! I keep this updated as additional edge cases present themselves.