mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 06:30:07 +01:00
20 lines
377 B
PHP
20 lines
377 B
PHP
<?php
|
|
namespace PonePaste\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class UserSession extends Model {
|
|
protected $table = 'user_sessions';
|
|
|
|
protected $casts = [
|
|
'expire_at' => 'datetime'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'user_id', 'token', 'expire_at'
|
|
];
|
|
|
|
public function user() {
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
}
|