Form submission

Posted 1 year ago by 10minutemail

My form is not working.

   <form method="post" action="{{ route('') }}"
                                    <input type="text" placeholder="Job Title" name="job_title">
                                    <input type="text" placeholder="Description" name="job_description">
                                    <input type="text" placeholder="Company" name="company_name">                                      <button type="submit" class="button ">Submit</button>

Controller: $job = new Job; $job->job_title=$request->job_title; $job->job_description=$request->job_description; $job->company_name =$request->company_name; $job->save(); return redirect()->route('', $job->id);

i dont understand what is the error.

Please sign in or create an account to participate in this conversation.