mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-18 20:41:27 +00:00
24 lines
304 B
PHP
24 lines
304 B
PHP
|
<?php
|
||
|
|
||
|
namespace App;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
class UserDevice extends Model
|
||
|
{
|
||
|
protected $fillable = [
|
||
|
'user_id',
|
||
|
'ip',
|
||
|
'user_agent'
|
||
|
];
|
||
|
|
||
|
public $timestamps = [
|
||
|
'last_active_at'
|
||
|
];
|
||
|
|
||
|
public function user()
|
||
|
{
|
||
|
return $this->belongsTo(User::class);
|
||
|
}
|
||
|
}
|