1
0
Fork 0
forked from mirror/pixelfed
pixelfed/app/UserDevice.php

24 lines
304 B
PHP
Raw Normal View History

2019-03-06 07:55:03 +00:00
<?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);
}
}