Storing Laravel Users in Files

Sometimes the Statamic way overrules the Laravel way.

When creating new site using the statamic command or by cloning statamic/statamic, your Laravel application will be preconfigured
to store users as files. Nothing else is required!

If you've installed Statamic into an existing Laravel application, it will be expecting users to be stored in the database, but you can switch to the filesystem:

  1. In config/statamic/users.php, change repository to file.
  2. In config/auth.php, change the users provider driver to statamic.
    'providers' => [
    'users' => [
    'driver' => 'statamic',
    ],
    ],
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →