lk-students/app/Models/HashRecord.php

21 lines
341 B
PHP
Raw Permalink Normal View History

2024-07-12 12:48:28 +03:00
<?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);
}
}