app/Http/Requests/UpdateBlogRequest.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 [
        'titulo' => 'required',
        'id_categoria' => 'required',
        'data' => 'required',
        'preview' => 'required',
        'descricao' => 'required',
        'img' => 'required'
        ];
    }
public function rules ( ) { return [ 'titulo' => 'required' , 'id_categoria' => 'required' , 'data' => 'required' , 'preview' => 'required' , 'descricao' => 'required' , 'img' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .