jeudi 31 mars 2016

getting err_too_many_redirects in laravel when I use Request for validation for validating unique

it is my error page

I have used customize Request page for geting value from post request.

in that request I am validation

namespace App\Http\Requests;

use App\Http\Requests\Request;

class TaxclassRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            "tax_class"=>'unique:taxes,tax_class'
        ];
    }
}

and my controller is


    function insert(TaxclassRequest $request)
    {



                $n=$request->input('number');           //total number of variable that has been created dyanamic
                $tax_class=$request->input("tax_class"); // tax_class
.
.
.
other code

I am getting error ERR_TOO_MANY_REDIRECTS



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2341ybR
via IFTTT

Aucun commentaire:

Enregistrer un commentaire