1 | <?php |
||
2 | |||
3 | namespace App; |
||
4 | |||
5 | use Illuminate\Database\Eloquent\Model; |
||
6 | use OwenIt\Auditing\AuditingTrait; |
||
0 ignored issues
–
show
|
|||
7 | use OwenIt\Auditing\Contracts\Auditable; |
||
8 | |||
9 | class Request extends Model implements Auditable |
||
10 | { |
||
11 | use \OwenIt\Auditing\Auditable; |
||
12 | public $timestamps = true; |
||
13 | protected $table = 'request'; |
||
14 | protected $fillable = [ |
||
15 | 'user_id', |
||
16 | 'object_type', |
||
17 | 'object_id', |
||
18 | 'used', |
||
19 | ]; |
||
20 | |||
21 | public function object() |
||
22 | { |
||
23 | return $this->morphTo(); |
||
24 | } |
||
25 | |||
26 | |||
27 | public function consume() |
||
28 | { |
||
29 | // Consume the request |
||
30 | |||
31 | $this->update(['used' => 1]); |
||
32 | } |
||
33 | |||
34 | } |
||
35 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths