23 lines
416 B
PHP
23 lines
416 B
PHP
<?php
|
|
namespace Modules\Profiler\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class QueryLog extends Model
|
|
{
|
|
public $table = 'queries_log';
|
|
protected $fillable = [
|
|
'query',
|
|
'bindings',
|
|
'time',
|
|
'http_log_id'
|
|
];
|
|
protected $casts = [
|
|
'bindings' => 'array'
|
|
];
|
|
|
|
public function httpLog()
|
|
{
|
|
return $this->belongsTo(HttpLog::class);
|
|
}
|
|
} |