Form submission

Posted 10 months ago by 10minutemail

My form is not working.

   <form method="post" action="{{ route('jobs.store') }}"
                                      enctype="multipart/form-data">
                                    @csrf
                                    <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>
       </form>

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('jobs.show', $job->id);

i dont understand what is the error.

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

Reply to

Use Markdown with GitHub-flavored code blocks.