Files
profiler/Entities/QueryLog.php
T
2017-09-23 00:46:53 +02:00

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);
}
}