Skip to content

Commit

Permalink
Update fillable fields
Browse files Browse the repository at this point in the history
  • Loading branch information
relliv committed Jan 18, 2024
1 parent 32daa36 commit 6ce9d9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Models/Statistic.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function __construct(array $attributes = [])
'os_name',
'os_version',
'platform',
'date',
];

protected $casts = [
Expand Down
9 changes: 9 additions & 0 deletions src/Models/StatisticHit.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,13 @@ class StatisticHit extends Model
use Statisticable;

public $timestamps = false;

protected $fillable = [
'statisticable_type',
'statisticable_id',
'ua_header',
'referrer',
'ip',
'date',
];
}

0 comments on commit 6ce9d9d

Please sign in to comment.