21 lines
341 B
PHP
21 lines
341 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
||
|
class HashRecord extends Model
|
||
|
{
|
||
|
protected $fillable = [
|
||
|
'id',
|
||
|
'user_id',
|
||
|
'hash',
|
||
|
];
|
||
|
|
||
|
public function user(): BelongsTo
|
||
|
{
|
||
|
return $this->belongsTo(User::class);
|
||
|
}
|
||
|
}
|