first commit
This commit is contained in:
23
app/Models/Lpu.php
Normal file
23
app/Models/Lpu.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Lpu extends Model
|
||||
{
|
||||
protected $table = 'oms_lpu';
|
||||
protected $primaryKey = 'lpuid';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'mname_s',
|
||||
'mainlpuid'
|
||||
];
|
||||
|
||||
public function department(): \Illuminate\Database\Eloquent\Relations\HasMany
|
||||
{
|
||||
return $this->hasMany(Department::class, 'lpuid', 'rf_lpuid');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user