owen-it / laravel-auditing

Record the change log from models in Laravel
https://laravel-auditing.com
MIT License
3.01k stars 387 forks source link

Merge v13 fixes into v14 branch #849

Closed erikn69 closed 1 year ago

erikn69 commented 1 year ago

@MortenDHansen this is a port from v13 to v14

An empty collection, when calling ->toArray() will return [], which makes the need to load the results of the relationship twice unnecessary.