Issues (84)

src/Entities/FirewallRequestsLogModel.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Someshwer\Firewall\src\Entities;
4
5
use Illuminate\Database\Eloquent\Model;
0 ignored issues
show
The type Illuminate\Database\Eloquent\Model was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
/**
8
 * Class FirewallRequestsLogModel.
9
 *
10
 * @property mixed response
11
 *
12
 * @author Someshwer Bandapally
13
 * Date: 14-08-2018
14
 */
15
class FirewallRequestsLogModel extends Model
16
{
17
    /**
18
     * Table name.
19
     *
20
     * @var string
21
     */
22
    protected $table = 'firewall_requests_log';
23
24
    /**
25
     * Table columns.
26
     *
27
     * @var array
28
     */
29
    protected $fillable = ['path', 'method', 'uri', 'url', 'full_url', 'query', 'file_name',
30
        'http_host', 'http_user_agent', 'ip_address', 'all_request_data', 'response_data', ];
31
32
    /**
33
     * Type casting.
34
     *
35
     * @var array
36
     */
37
    protected $casts = [
38
        'query'            => 'json',
39
        'all_request_data' => 'json',
40
        'response_data'    => 'json',
41
    ];
42
43
    /*public function setResponseDataAttribute($value)
44
    {
45
        $this->attributes['response_data'] = ($value == null) ? null : serialize($value);
46
    }*/
47
48
    /*public function getResponseDataAttribute($value)
49
    {
50
        return ($value == null) ? null : unserialize($value);
51
    }*/
52
}
53