class UserHelper
Helper allows specific methods to be easily accessible through the DeviseUser facade.
Methods
|
__construct(RuleManager $RuleManager, UsersRepository $UsersRepository, Framework $Framework)
|
||
| 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
public
__construct(RuleManager $RuleManager, UsersRepository $UsersRepository, Framework $Framework)
at line 57
public boolean
__call(string $method, array $arguments)
Magic method to used to catch function(s) not found in RuleManager
at line 67
public DvsUser
currentUser()
Convenience function to get current user object
at line 77
public integer
currentUserId()
Convenience function to get current user's id
at line 90
public 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
public void
checkRule(string $method, array $arguments = array())
Checks for any user-defined rules/closures