init
This commit is contained in:
23
web10/app/Models/ContentViewLog.php
Normal file
23
web10/app/Models/ContentViewLog.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ContentViewLog extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'content_type',
|
||||
'content_id',
|
||||
'ip',
|
||||
'user_agent_hash',
|
||||
'viewed_on',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'viewed_on' => 'date',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user