Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| MasqueradeLog | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Http\Models; |
| 4 | |
| 5 | /** |
| 6 | * MasqueradeLog Model |
| 7 | * |
| 8 | * Stores audit log entries for masquerade (admin impersonation) actions. |
| 9 | * |
| 10 | * @property string $admin_id The ID of the admin performing the masquerade |
| 11 | * @property string $admin_email The email of the admin performing the masquerade |
| 12 | * @property string $target_user_id The ID of the user being masqueraded |
| 13 | * @property string $target_user_email The email of the user being masqueraded |
| 14 | * @property string|null $company_id The company ID associated with the masquerade |
| 15 | * @property string $action The action type ('generate' or 'start') |
| 16 | * @property string|null $ip_address The IP address of the request |
| 17 | * @property string|null $user_agent The user agent of the request |
| 18 | * @property \Carbon\Carbon|null $expires_at The expiration time of the masquerade token |
| 19 | */ |
| 20 | class MasqueradeLog extends Moloquent |
| 21 | { |
| 22 | protected $table = 'masquerade_logs'; |
| 23 | |
| 24 | protected $fillable = [ |
| 25 | 'admin_id', |
| 26 | 'admin_email', |
| 27 | 'target_user_id', |
| 28 | 'target_user_email', |
| 29 | 'company_id', |
| 30 | 'action', |
| 31 | 'ip_address', |
| 32 | 'user_agent', |
| 33 | 'expires_at', |
| 34 | ]; |
| 35 | |
| 36 | protected $casts = [ |
| 37 | 'expires_at' => 'datetime', |
| 38 | ]; |
| 39 | } |