Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
HttpLog | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
serializeDate | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
1 | <?php |
2 | |
3 | namespace Qmp\Laravel\DockerScale\Models; |
4 | |
5 | use Illuminate\Database\Eloquent\Model; |
6 | |
7 | class HttpLog extends Model |
8 | { |
9 | protected $connection = 'dockerScale'; |
10 | protected $table = 'http_logs'; |
11 | |
12 | protected $fillable = ['service', 'ts', 'distant', 'local', 'method', 'uri', 'code', 'size', 'time', 'uri_from', 'user_agent', ]; |
13 | |
14 | /** |
15 | * Prepare a date for array / JSON serialization. |
16 | * |
17 | * @param \DateTimeInterface $date |
18 | * @return string |
19 | */ |
20 | protected function serializeDate(\DateTimeInterface $date) |
21 | { |
22 | return $date->format('Y-m-d H:i:s'); |
23 | } |
24 | |
25 | } |