update fix deadcode, security
This commit is contained in:
@@ -41,15 +41,6 @@ class ModuleHosting extends Model
|
||||
{
|
||||
return $this->belongsTo(\App\Models\ModuleHostingServer::class,'module_server_id','id');
|
||||
}
|
||||
|
||||
public function getStatus()
|
||||
{
|
||||
return match ($this->attributes['status']){
|
||||
1 => '<span class="badge bg-success">Active</span>',
|
||||
2 => '<span class="badge bg-secondary">Cancel</span>',
|
||||
default => '<span class="badge bg-danger">Pending</span>'
|
||||
};
|
||||
}
|
||||
public function scopeIsActive(Builder $query)
|
||||
{
|
||||
$query->where('active', 1);
|
||||
|
||||
Reference in New Issue
Block a user