Mity Docs Mity Docs for Mity Digital
Logger for Statamic Documentation

Eloquent Users

Logger will work with both File and Eloquent users - and your own User model if you want too.

Statamic's File-based Users are ready to go out of the box, but your Eloquent (or custom Model) user will need the name() method.

Your name() method should not rely on any input parameters.

Your name() method should return the User's name.

Add this to your User model when using Eloquent, and you're all set.