--- title: Writing Storage Drivers description: Writing Storage Drivers extends: _layouts.documentation_v2 section: content --- # Writing Storage Drivers If you don't want to use the provided DB/Redis storage drivers, you can write your own driver. To create a driver, create a class that implements the `Stancl\Tenancy\Contracts\StorageDriver` interface. Here's an example: ```php