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:
- In
config/statamic/users.php
, changerepository
tofile
. - In
config/auth.php
, change the users provider driver tostatamic
.'providers' => ['users' => ['driver' => 'statamic',],],
Docs Feedback
Submit improvements, related content, or suggestions through Github.
Betterify this page