shell bypass 403
<?php
namespace App\Http\Requests\Keywords;
use App\Rules\UniqueKeyword;
use Illuminate\Foundation\Http\FormRequest;
class StoreKeywordsRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules(): array
{
return [
'title' => 'required',
'keyword_name' => ['required', 'max:50', new UniqueKeyword($this->keyword_name, $this->user_id)],
'user_id' => 'required',
'price' => 'required|min:0|max:12',
'billing_cycle' => 'required|string',
'status' => 'required|string',
'frequency_amount' => 'required_if:billing_cycle,custom|nullable|numeric',
'frequency_unit' => 'required_if:billing_cycle,custom|nullable|string',
'reply_text' => 'required_without_all:reply_voice,reply_mms|nullable|string',
'reply_mms' => 'sometimes|required|image',
'currency_id' => 'required',
];
}
}