30 lines
629 B
PHP
30 lines
629 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class StatusLog extends Model
|
|
{
|
|
/** @use HasFactory<\Database\Factories\StatusLogFactory> */
|
|
use HasFactory;
|
|
protected $fillable = [
|
|
'registrasi_id',
|
|
'status',
|
|
'user_id',
|
|
'waktu_perubahan',
|
|
];
|
|
|
|
public function registrasi(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Registrasi::class);
|
|
}
|
|
|
|
public function user(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
}
|