akaunting / laravel-firewall

Web Application Firewall (WAF) package for Laravel
https://akaunting.com
MIT License
942 stars 106 forks source link

Log model config not use in belongTo/hasMany #33

Closed thomascombe closed 3 years ago

thomascombe commented 3 years ago

Hi,

We can configure log model class in : https://github.com/akaunting/laravel-firewall/blob/master/src/Config/firewall.php#L11

    'models' => [
        'user' => '\App\Models\User',
        // 'log' => '\App\Models\YourLogModel',
        // 'ip' => '\App\Models\YourIpModel',
    ],

But this config not use in Ip model for :

denisdulici commented 3 years ago

Feel free to send a PR.