Total Complexity | 4 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
24 | class AdminOperationLogRepositoryEloquent |
||
25 | extends BaseRepository |
||
26 | implements AdminOperationLogRepository |
||
27 | { |
||
28 | /** |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $fieldSearchable = [ |
||
32 | 'id', |
||
33 | 'user_id', |
||
34 | 'method', |
||
35 | 'path' => 'like', |
||
36 | 'ip' => 'like', |
||
37 | 'input' => 'like', |
||
38 | ]; |
||
39 | |||
40 | /** |
||
41 | * $isSearchableForceAndWhere |
||
42 | * |
||
43 | * @var bool |
||
44 | */ |
||
45 | protected $isSearchableForceAndWhere = true; |
||
46 | |||
47 | /** |
||
48 | * Specify Model class name. |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | public function model() |
||
53 | { |
||
54 | return AdminOperationLog::class; |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Specify Validator class name. |
||
59 | * |
||
60 | * @return mixed |
||
61 | */ |
||
62 | public function validator() |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * Specify Presenter class name. |
||
69 | * |
||
70 | * @return mixed |
||
71 | */ |
||
72 | public function presenter() |
||
73 | { |
||
74 | return AdminOperationLogPresenter::class; |
||
75 | } |
||
76 | |||
77 | /** |
||
78 | * Boot up the repository, pushing criteria. |
||
79 | */ |
||
80 | public function boot() |
||
83 | } |
||
84 | } |
||
85 |