Backup Perbaikan
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Verifikator;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class VerifikasiAbsenToken extends Model
|
||||
{
|
||||
protected $table = 'verifikator.verifikasi_absen_tokens';
|
||||
|
||||
protected $fillable = [
|
||||
'pengajuan_id',
|
||||
'nip',
|
||||
'token',
|
||||
'purpose',
|
||||
'expires_at',
|
||||
'first_accessed_at',
|
||||
'used_at',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'expires_at' => 'datetime',
|
||||
'first_accessed_at' => 'datetime',
|
||||
'used_at' => 'datetime',
|
||||
];
|
||||
|
||||
public function pengajuan()
|
||||
{
|
||||
return $this->belongsTo(PengajuanPresensi::class, 'pengajuan_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user