app/Http/Requests/ValidationApiRequest.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 [
            'id_violation_types' => 'required',
                'id_author_reports' => 'required',
                'classificacao' => 'required',
                'identificacao' => 'required',
                'local_violacao' => 'required',
                'data_violacao' => 'required',
                'descricao_violacao' => 'required',
                'midia_anexada' => 'required'
        ];
    }
public function rules ( ) { return [ 'id_violation_types' => 'required' , 'id_author_reports' => 'required' , 'classificacao' => 'required' , 'identificacao' => 'required' , 'local_violacao' => 'required' , 'data_violacao' => 'required' , 'descricao_violacao' => 'required' , 'midia_anexada' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .