Tips & Tricks
Here's a collection of little tips & tricks to help you on your way.
CLI
4 guides
-
Converting from Single to Multi-Site
Convert a single-site Statamic project to multi-site with php please multisite, or walk through the manual conversion steps.
-
Excluding the Control Panel from Maintenance Mode
Keep the Control Panel reachable while Laravel maintenance mode is on — add CP routes to the allow list.
-
How to Enable Statamic Pro
A fresh Statamic install starts in Solo edition mode. Here's how to enable Pro mode and unlock every feature Statamic has.
-
Importing Existing Content
Import content from another CMS into Statamic — built-in tools, converters, and manual approaches for every situation.
Database
4 guides
-
Building your own Entries Repository
Statamic's data layer is driver-driven. Build a custom Eloquent repository when flat files are not enough.
-
Storing Content in a Database
Outgrown flat-file content? Move entries, collections, and assets into a database with Statamic's Eloquent driver.
-
Storing Users in a Database
Move users from flat files to a database when your user count grows and filesystem storage stops scaling.
-
Storing Users Somewhere Custom
Build a custom user repository when file or Eloquent storage does not fit how your users need to work.
Development
31 guides
-
Building your own Entries Repository
Statamic's data layer is driver-driven. Build a custom Eloquent repository when flat files are not enough.
-
Configuring update scripts on older installations
Update scripts were introduced for Statamic 3.1. Learn about update scripts and how to configure them on older Statamic installations.
-
Content Security Policy
Lock down scripts, styles, and frames with a Content Security Policy — plus what Statamic needs whitelisted.
-
Converting from Single to Multi-Site
Convert a single-site Statamic project to multi-site with php please multisite, or walk through the manual conversion steps.
-
Creating Users by Hand
Create CP users by adding YAML files to the users directory — Statamic encrypts the password on first load.
-
Disabling Control Panel Authentication
Disable the CP login, forgot-password, and registration pages when you are rolling your own authentication.
-
Enforce trailing slashes in URLs
Keep trailing slashes on URLs for SEO when migrating from another CMS — one helper call in AppServiceProvider.
-
Excluding the Control Panel from Maintenance Mode
Keep the Control Panel reachable while Laravel maintenance mode is on — add CP routes to the allow list.
-
Git Workflow
A good workflow revolving around git to manage your deployments is a key factor in a pain-free and efficient project.
-
How to change your timezone to UTC
Statamic 6 improves timezone handling. Switch your app timezone back to UTC and let Statamic handle display conversion.