37 lines
656 B
PHP
37 lines
656 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class FormOthers extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'form_others';
|
|
protected $fillable = [
|
|
'expense_number',
|
|
'user_id',
|
|
'kategori_id',
|
|
'tanggal',
|
|
'keterangan',
|
|
'total',
|
|
'bukti1',
|
|
'bukti2',
|
|
'bukti3',
|
|
'account_number',
|
|
'status',
|
|
];
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(Admin::class);
|
|
}
|
|
|
|
public function kategori()
|
|
{
|
|
return $this->belongsTo(Kategori::class);
|
|
}
|
|
}
|