User Helper
This helper load a user's model defined in config/auth.providers.users.model
and return detailed info about it.
User Helper is "macroable" and "collectable", which allows you to run batch methods and collect output with UserHelper::collect('class', 'namespace')
Class
/**
* Get user's model class
* @return string
*/
UserHelper::class(): void
Name
/**
* Get user's model name
* @return string
*/
UserHelper::name(): void
Reflection
/**
* Get user's model reflection class
* @return ReflectionClass
* @throws \Exception
*/
UserHelper::reflection(): void
Model
/**
* Get user's model ModelHelper
* @return Model
*/
UserHelper::model(): void
Exists
/**
* Check if user's model exists
* @return bool
*/
UserHelper::exists(): void
Filepath
/**
* Get filepath of user's model
* @return string
* @throws \Exception
*/
UserHelper::filepath(): void
Content
/**
* Get full content of user's model file
* @return string
* @throws \Exception
*/
UserHelper::content(): void
Implements
/**
* Get collection of 'implements' for user's model
* @return Collection
*/
UserHelper::implements(): void