app/Http/Requests/Option/StoreOptionRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'description' => ['required', 'string', 'max:255'],
            'correct' => ['required', 'boolean'],
            'question_id' => ['required', 'exists:questions,id'],
        ];
    }
public function rules ( ) { return [ 'description' => [ 'required' , 'string' , 'max:255' ] , 'correct' => [ 'required' , 'boolean' ] , 'question_id' => [ 'required' , 'exists:questions,id' ] , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .