feat: implement site visit in controller and add visit table
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
*/
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class Visit
|
||||
*
|
||||
* @property int $id
|
||||
* @property string|null $ip_address
|
||||
* @property string|null $url
|
||||
* @property string|null $user_agent
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
*
|
||||
* @package App\Models
|
||||
*/
|
||||
class Visit extends Model
|
||||
{
|
||||
protected $table = 'visits';
|
||||
public static $snakeAttributes = false;
|
||||
|
||||
protected $fillable = [
|
||||
'ip_address',
|
||||
'url',
|
||||
'user_agent'
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user