@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php namespace JobApis\JobsToMail\Models; |
2 | 2 | |
3 | 3 | use Illuminate\Database\Eloquent\Model; |
4 | -use Illuminate\Support\Facades\DB; |
|
5 | 4 | use Ramsey\Uuid\Uuid; |
6 | 5 | |
7 | 6 | class Recruiter extends Model |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | { |
31 | 31 | parent::boot(); |
32 | 32 | |
33 | - static::creating(function ($model) { |
|
33 | + static::creating(function($model) { |
|
34 | 34 | $model->{$model->getKeyName()} = Uuid::uuid4(); |
35 | 35 | }); |
36 | 36 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | { |
48 | 48 | if ($name) { |
49 | 49 | $where = "to_tsvector('english', name) @@ plainto_tsquery('english', ?)"; |
50 | - return $query->whereRaw($where, [$name]); |
|
50 | + return $query->whereRaw($where, [ $name ]); |
|
51 | 51 | } |
52 | 52 | return $query; |
53 | 53 | } |