Property | Type | Description | |
---|---|---|---|
$errors | array | Errors are kept in an array and can be used later if validation fails and we want to know why | |
$message | string | This is a message that we can store why validation failed |
Property | Type | Description | |
---|---|---|---|
$DvsUser | DvsUser | DvsUser model to fetch database records | |
$Framework | Framework components being used from Laravel's framework |
Method | Description | |
---|---|---|
__construct ( DvsUser $DvsUser, |
Construct a new users repository | |
findByEmail ( string $email ) : DvsUser | Find user by email field | |
findById ( integer $id ) : DvsUser | Find user by id | |
findByName ( string $name ) : DvsUser | Find user by name field | |
findByUsername ( string $username ) : DvsUser | Find user by name field | |
retrieveCurrentUser ( ) : DvsUser | null | Retrieve currently logged-in user object | |
retrieveCurrentUserId ( ) : integer | null | Retrieve current user id | |
users ( ) : Eloquent\Collection | Paginated list of users |
Method | Description | |
---|---|---|
findByFieldAndValue ( string $fieldname, string $value ) : DvsUser | Finds an instance of DvsUser using the specified fieldname and value |
public __construct ( DvsUser $DvsUser, |
||
$DvsUser | DvsUser | |
$Framework |
public findByEmail ( string $email ) : DvsUser | ||
string | ||
return | DvsUser |
protected findByFieldAndValue ( string $fieldname, string $value ) : DvsUser | ||
$fieldname | string | |
$value | string | |
return | DvsUser |
public findByName ( string $name ) : DvsUser | ||
$name | string | |
return | DvsUser |
public findByUsername ( string $username ) : DvsUser | ||
$username | string | |
return | DvsUser |
public retrieveCurrentUser ( ) : DvsUser | null | ||
return | DvsUser | null | | null |
public retrieveCurrentUserId ( ) : integer | null | ||
return | integer | null | | null |
public users ( ) : Eloquent\Collection | ||
return | Eloquent\Collection |
protected DvsUser $DvsUser | ||
return | DvsUser |
protected Framework,Devise\Support $Framework | ||
return |
public array $errors | ||
return | array |
public string $message | ||
return | string |