Method | Description | |
---|---|---|
findOrFail ( integer $id, |
Find a user by ID, optionally making sure it is visible to a certain user, or throw an exception. | |
query ( ) : |
Get a new query builder for the groups table. |
Method | Description | |
---|---|---|
scopeVisibleTo ( |
Scope a query to only include records that are visible to a user. |
public findOrFail ( integer $id, |
||
$id | integer | |
$actor | ||
return |
public query ( ) : |
||
return |
protected scopeVisibleTo ( |
||
$query | ||
$actor | ||
return |