FEATURE: add simple view for requests and queries

This commit is contained in:
Michal Kváček
2017-03-02 20:04:35 +01:00
parent d99c046103
commit 9c90e844b0
23 changed files with 347 additions and 54 deletions
+7 -1
View File
@@ -9,9 +9,15 @@ class QueryLog extends Model
protected $fillable = [
'query',
'bindings',
'time'
'time',
'http_log_id'
];
protected $casts = [
'bindings' => 'array'
];
public function httpLog()
{
return $this->belongsTo(HttpLog::class);
}
}