Statistics module: visitor statistics without cookies
This commit is contained in:
1 parent
acb8620621
commit
7482ee489b
24 files changed
+1872
-4
No files matched your search
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace IriksIT\Manager\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
/**
|
||||
* One page someone looked at, within a visit.
|
||||
*
|
||||
* @property string $day
|
||||
*/
|
||||
class PageView extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return ['viewed_at' => 'datetime', 'hour' => 'integer', 'seconds' => 'integer'];
|
||||
}
|
||||
|
||||
/** @return BelongsTo<Visit, $this> */
|
||||
public function visit(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Visit::class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user