Files
hpt_inventory/app/Models/Role.php
2026-06-15 11:25:16 +07:00

28 lines
494 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Role extends BaseModel
{
public $timestamps = false;
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
public static function boot()
{
parent::boot();
}
protected $fillable = ['name_en', 'organization_id'];
public function lab(){
return $this->belongsTo(Organization::class, 'organization_id');
}
}