modified: SRC/app/Http/Controllers/GameController.php
modified: SRC/app/Http/routes.php modified: SRC/app/Models/User.php
This commit is contained in:
@ -39,4 +39,8 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
|
||||
{
|
||||
return $query->where('droits', '0');
|
||||
}
|
||||
|
||||
public function scopeName($query, $reg) {
|
||||
return $query->where('firstname', 'like', '%'.$reg.'%')->orWhere('lastname', 'like', '%'.$reg.'%');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user