shell bypass 403
<?php namespace App\Http\Requests\Settings; use Illuminate\Foundation\Http\FormRequest; class UpdateVersionRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize(): bool { return $this->user()->can('access backend'); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'purchase_code' => 'required|min:30|max:40', 'update_file' => 'required|file|mimes:zip', ]; } }