Skip to content
Advertisement

Laravel 5 On POST Status 302 Found

I’m trying to create new post useing laravel , ajax and s3 , But every time i try submit the form i get Status Code:302 Found , I Hope really some help me

Firebug

Here in firebug result image

META

JavaScript

VIEW

The form view with csrf token

JavaScript

CONTROLLER

First valid the requist and than create new email for the user if he did’t have and than save the post with the user

JavaScript

Ajax

ajax to get subcategory foreach category after select

JavaScript

Advertisement

Answer

The name of your category and subcategory fields are “category” and “subcategory” but are being referred to as “category_id” and “subcategory_id” respectively in your Controller code.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement