program dan basis data ekosistem
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Core;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
use App\Models\Pertanian\Komoditas;
|
||||
|
||||
class KomoditasProgram extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $table = 'core_program_komoditas';
|
||||
|
||||
protected $fillable = [
|
||||
"program_id",
|
||||
"komoditas_id",
|
||||
"default",
|
||||
];
|
||||
|
||||
public function komoditas(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Komoditas::class, 'komoditas_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user