This repository was archived by the owner on Mar 2, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 44
55use Faker \Factory ;
66use Illuminate \Database \Eloquent \Model ;
7- use Illuminate \Database \Query \Builder ;
87use Illuminate \Support \Arr ;
98
109/**
@@ -185,27 +184,27 @@ public function getAnonymizable()
185184 /**
186185 * where for encrypted columns
187186 *
188- * @param Builder $query
187+ * @param $query
189188 * @param $field
190189 * @param $value
191190 *
192- * @return Builder
191+ * @return mixed
193192 */
194- public function scopeWhereEncrypted (Builder $ query , $ field , $ value )
193+ public function scopeWhereEncrypted ($ query , $ field , $ value )
195194 {
196195 return $ query ->whereRaw ('AES_DECRYPT( ' . $ field . ', " ' . getenv ("ENCRYPTION_KEY " ) . '") LIKE " ' . $ value . '" COLLATE utf8mb4_general_ci ' );
197196 }
198197
199198 /**
200199 * orWhere for encrypted columns
201200 *
202- * @param Builder $query
201+ * @param $query
203202 * @param $field
204203 * @param $value
205204 *
206- * @return Builder
205+ * @return mixed
207206 */
208- public function scopeOrWhereEncrypted (Builder $ query , $ field , $ value )
207+ public function scopeOrWhereEncrypted ($ query , $ field , $ value )
209208 {
210209 return $ query ->orWhereRaw ('AES_DECRYPT( ' . $ field . ', " ' . getenv ("ENCRYPTION_KEY " ) . '") LIKE " ' . $ value . '" COLLATE utf8mb4_general_ci ' );
211210 }
You can’t perform that action at this time.
0 commit comments