Penambahan FrontEnd All-New-Manufacture
This commit is contained in:
20
app/Models/LevelPegawai.php
Normal file
20
app/Models/LevelPegawai.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class LevelPegawai extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'level_user';
|
||||
|
||||
protected $fillable = [ 'level_code', 'level_name' ];
|
||||
|
||||
public function levelPegawai ()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'level_pegawai', 'level_code');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user