mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-08 11:15:09 -05:00
Changed some descriptions of the admin tools for Miraak. Aded some more Permissions and added a moderator role.
29 lines
546 B
PHP
29 lines
546 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Api\Admin\Tools;
|
|
|
|
use App\Enums\Auth\Permissions;
|
|
use Auth;
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class HandleModerationRequest extends FormRequest
|
|
{
|
|
public string $consequences;
|
|
|
|
public function authorize(): bool
|
|
{
|
|
return Auth::check();
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'consequences' => 'required|string'
|
|
];
|
|
}
|
|
|
|
protected function passedValidation()
|
|
{
|
|
$this->consequences = $this->input('consequences');
|
|
}
|
|
} |