- users active is recorded when users logges in - add active broker and active customer multi axis line chart - add filter option of 30 days and 7 days
33 lines
709 B
PHP
33 lines
709 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Enums\UserTypes;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* @property UserTypes $user_type
|
|
*
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|PageVisit newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|PageVisit newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|PageVisit query()
|
|
*
|
|
* @mixin \Eloquent
|
|
*/
|
|
class PageVisit extends Model
|
|
{
|
|
protected $fillable = [
|
|
'user_id', 'page', 'user_type',
|
|
'created_at',
|
|
];
|
|
|
|
public $timestamps = false;
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'user_type' => UserTypes::class,
|
|
];
|
|
}
|
|
}
|