modified: SRC/app/Http/Controllers/GameController.php

modified:   SRC/app/Http/routes.php
	modified:   SRC/app/Models/User.php
This commit is contained in:
Malibu
2015-03-10 16:10:52 +01:00
parent 12a0a618a6
commit b9202d2070
3 changed files with 11 additions and 0 deletions

View File

@ -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.'%');
}
}