made eula api route, formatted table, cleaned up code

This commit is contained in:
Godfrey M
2025-06-04 15:04:59 -07:00
parent 6f4cee6334
commit ee3deb9c63
6 changed files with 39 additions and 25 deletions
+1
View File
@@ -561,6 +561,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
public function eulas()
{
return $this->hasMany(Actionlog::class, 'target_id')
->with('item')
->where('target_type', self::class)
->where('action_type', 'accepted')
->whereNotNull('filename')