mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-13 04:30:41 -05:00
17 lines
299 B
PHP
17 lines
299 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
abstract class ModeratedModel extends Model
|
|
{
|
|
abstract public function getFriendlyName(): string;
|
|
|
|
public function toggleDisabled(): void
|
|
{
|
|
$this->disabled = ! $this->disabled;
|
|
$this->save();
|
|
}
|
|
}
|