owen-it / laravel-auditing

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

Don't need to execute these calls multiple times #831

Closed gms8994 closed 1 year ago

gms8994 commented 1 year ago

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