mirror of
https://github.com/twinpath/app.git
synced 2026-01-26 05:15:28 +07:00
26 lines
399 B
PHP
26 lines
399 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class LoginHistory extends Model
|
|
{
|
|
protected $fillable = [
|
|
'user_id',
|
|
'ip_address',
|
|
'user_agent',
|
|
'provider',
|
|
'login_at',
|
|
];
|
|
|
|
protected $casts = [
|
|
'login_at' => 'datetime',
|
|
];
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
}
|