update fix deadcode, security
This commit is contained in:
@@ -52,13 +52,6 @@ class Os extends Model
|
||||
{
|
||||
return $this->belongsTo(\App\Models\ModuleFolder::class, 'folder_id');
|
||||
}
|
||||
public function getStatus()
|
||||
{
|
||||
return match ($this->attributes['status']){
|
||||
1 => '<span class="badge bg-success">Active</span>',
|
||||
default => '<span class="badge bg-danger">De-Active</span>'
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Many-to-many relationship với Products (new table: os_product)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user