Total Complexity | 5 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class CbUsersRepo |
||
6 | { |
||
7 | public static function find($id) |
||
8 | { |
||
9 | return self::where(['id' => $id])->first(); |
||
10 | } |
||
11 | |||
12 | public static function where($conditions) |
||
15 | } |
||
16 | |||
17 | public static function table() |
||
18 | { |
||
19 | return \DB::table(cbConfig('USER_TABLE')); |
||
20 | } |
||
21 | |||
22 | public static function findByMail($email) |
||
23 | { |
||
24 | return self::where(['email' => $email])->first(); |
||
25 | } |
||
26 | |||
27 | public static function updateByMail($email, $data) |
||
30 | } |
||
31 | } |