UserHelper
class UserHelper
Helper allows specific methods to be easily accessible through the DeviseUser facade.
Methods
__construct(RuleManager $RuleManager, UsersRepository $UsersRepository, Framework $Framework)
No description
boolean
__call(string $method, array $arguments)
Magic method to used to catch function(s) not found in RuleManager
DvsUser
currentUser()
Convenience function to get current user object
integer
currentUserId()
Convenience function to get current user's id
void
checkConditions(string $conditionNames, boolean $redirectOnFail = false)
Convenience function for handing a single condition name or an array of multiple condition names.
void
checkRule(string $method, array $arguments = array())
Checks for any user-defined rules/closures
Details
at line 42
__construct(RuleManager $RuleManager, UsersRepository $UsersRepository, Framework $Framework)
at line 57
boolean
__call(string $method, array $arguments)
Magic method to used to catch function(s) not found in RuleManager
at line 67
DvsUser
currentUser()
Convenience function to get current user object
at line 77
integer
currentUserId()
Convenience function to get current user's id
at line 90
void
checkConditions(string $conditionNames, boolean $redirectOnFail = false)
Convenience function for handing a single condition name or an array of multiple condition names.
at line 106
void
checkRule(string $method, array $arguments = array())
Checks for any user-defined rules/closures