cslant /
blog-api-package
| 1 | <?php |
||
| 2 | |||
| 3 | namespace CSlant\Blog\Api\Models; |
||
| 4 | |||
| 5 | use Carbon\Carbon; |
||
| 6 | use Illuminate\Database\Eloquent\Model; |
||
| 7 | use Illuminate\Database\Eloquent\Relations\MorphTo; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @property int $id |
||
| 11 | * @property string $viewable_type |
||
| 12 | * @property int $viewable_id |
||
| 13 | * @property string $ip_address |
||
| 14 | * @property null|string $user_agent |
||
| 15 | * @property Carbon $expired_at |
||
| 16 | * @property Carbon $created_at |
||
| 17 | * @property Carbon $updated_at |
||
| 18 | */ |
||
| 19 | class VisitorLog extends Model |
||
| 20 | { |
||
| 21 | protected $primaryKey = 'id'; |
||
| 22 | |||
| 23 | public $incrementing = true; |
||
| 24 | |||
| 25 | public $timestamps = true; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * The attributes that are mass assignable. |
||
| 29 | * |
||
| 30 | * @var list<string> |
||
|
0 ignored issues
–
show
|
|||
| 31 | */ |
||
| 32 | protected $fillable = [ |
||
| 33 | 'id', |
||
| 34 | 'viewable_type', |
||
| 35 | 'viewable_id', |
||
| 36 | 'ip_address', |
||
| 37 | 'user_agent', |
||
| 38 | 'expired_at', |
||
| 39 | 'created_at', |
||
| 40 | 'updated_at', |
||
| 41 | ]; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * The attributes that should be cast. |
||
| 45 | * |
||
| 46 | * @var array<string, string> |
||
| 47 | */ |
||
| 48 | protected $casts = [ |
||
| 49 | 'expired_at' => 'datetime', |
||
| 50 | ]; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return MorphTo<Model, $this> |
||
| 54 | */ |
||
| 55 | public function viewable(): MorphTo |
||
| 56 | { |
||
| 57 | return $this->morphTo(); |
||
| 58 | } |
||
| 59 | } |
||
| 60 |
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