app/Http/Requests/noticiaRequest.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',
            'texto' => 'required',
            'estado' => 'required',
            'foto' => 'required|image|mimes:jpeg,png,jpg,gif,svg | dimensions:max_width=5500,max_height=5500'
        ];
    }
public function rules ( ) { return [ 'titulo' => 'required' , 'texto' => 'required' , 'estado' => 'required' , 'foto' => 'required|image|mimes:jpeg,png,jpg,gif,svg | dimensions:max_width=5500,max_height=5500' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .