34 lines
671 B
PHP
34 lines
671 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class Tindakan extends Model
|
|
{
|
|
use HasFactory, SoftDeletes;
|
|
|
|
protected $table = 'tindakan';
|
|
|
|
protected $fillable = [
|
|
'created_at',
|
|
'created_by',
|
|
'updated_at',
|
|
'updated_by',
|
|
'deleted_at',
|
|
'deleted_by',
|
|
|
|
'nama',
|
|
'tarif',
|
|
'detail',
|
|
];
|
|
|
|
public function transaksi() : HasMany
|
|
{
|
|
return $this->hasMany(Transaksi::class, 'id_tindakan', 'id');
|
|
}
|
|
}
|