title: It is redirecting to the same file
body: <p>Can someone tell me what is wrong is this file?
  It is redirecting to the same page when I click the submit button and it is not  going to forward. It worked well earlier.</p>
  <p><strong>Controller</strong></p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers\guest\forms;
  
  use App\Http\Controllers\Controller;
  use App\Models\guest\hirer\HirerForm4;
  use App\Models\guest\Loan;
  use Illuminate\Http\Request;
  use Illuminate\Support\Facades\DB;
  
  class Hirer_4Controller extends Controller
  {
      public function storeForm4(Request $request)
      {
  
          $validated = $request-&gt;validate([
              'hirer_nic' =&gt; 'required',
  
              'h_monthly_income' =&gt; 'required',
              'h_annual_income' =&gt; 'required',
              'h_anticipated_income',
  
              'h_incomeTax_year1',
              'h_incomeTax_assessable1',
              'h_incomeTax_taxable1',
              'h_incomeTax_tax1',
  
              'h_incomeTax_year2',
              'h_incomeTax_assessable2',
              'h_incomeTax_taxable2',
              'h_incomeTax_tax2',
          ]);
          dd('5');
  
          if ($validated);
  
          // user inputting nic capturing
          $hirer_nic_input = $request-&gt;hirer_nic;
          // checking the both nics are matched or not
          $hirer_nic_exsist = DB::table('loans')-&gt;where('hirer_nic', $hirer_nic_input)-&gt;first();
          // gettin gth elast loan_id from the table
          $last_loan_id = Loan::orderBy('loan_id', 'desc')-&gt;first()-&gt;loan_id;
  
  
          if (!$hirer_nic_exsist) {
  
              // if both nics are not matched
              return back();
          } elseif ($hirer_nic_exsist) {
              // if both nics are matched
  
              HirerForm4::create([
                  'loan_id' =&gt; $last_loan_id,
                  'hirer_nic' =&gt; $request-&gt;hirer_nic,
  
                  'monthly_income' =&gt; $request-&gt;monthly_income,
                  'annual_income' =&gt; $request-&gt;annual_income,
                  'anticipated_income' =&gt; $request-&gt;anticipated_income,
  
                  'incomeTax_year1' =&gt; $request-&gt;incomeTax_year1,
                  'incomeTax_assessable1' =&gt; $request-&gt;incomeTax_assessable1,
                  'incomeTax_taxable1' =&gt; $request-&gt;incomeTax_taxable1,
                  'incomeTax_tax1' =&gt; $request-&gt;incomeTax_tax1,
  
                  'incomeTax_year2' =&gt; $request-&gt;incomeTax_year2,
                  'incomeTax_assessable2' =&gt; $request-&gt;incomeTax_assessable2,
                  'incomeTax_taxable2' =&gt; $request-&gt;incomeTax_taxable2,
                  'incomeTax_tax2' =&gt; $request-&gt;incomeTax_tax2,
  
              ]);
              return redirect()-&gt;route('start.hirerForm-5');
          }
      }
  }
  </code></pre>
  <p><strong>Blade</strong></p>
  <pre><code>@extends('layouts.dash')
  
  @section('content')
      {{-- form1 --}}
  
      {{-- &lt;div class=&quot;container&quot;&gt; --}}
      &lt;link rel=&quot;stylesheet&quot; href=&quot;{{ asset('css/app.css') }}&quot;&gt;
      &lt;div class=&quot;card col mx-5 my-5 border&quot;&gt;
          &lt;h5 class=&quot;card-header&quot;&gt;{{ __('Form 4 - Hirer Personal Details') }}&lt;/h5&gt;
          &lt;div class=&quot;card-body&quot;&gt;
  
              &lt;form method=&quot;POST&quot; action=&quot;{{ route('store.hirerForm-4') }}&quot; enctype=&quot;multipart/form-data&quot;&gt;
                  @csrf
  
                  &lt;div class=&quot;row&quot;&gt;
                      {{-- monthly income --}}
                      &lt;div class=&quot;form-group col&quot;&gt;
                          &lt;label&gt;&lt;b&gt;
                                  &lt;h6&gt;21. Total monthly income &lt;/h6&gt;
                              &lt;/b&gt;&lt;/label&gt;
                          &lt;input type=&quot;number&quot;
                              class=&quot;form-control border-info border-2 mb-2 @error('monthly_income') is-invalid @enderror&quot;
                              name=&quot;monthly_income&quot; placeholder=&quot;Enter the state&quot;&gt;
                          @error('monthly_income')
                              &lt;span class=&quot;invalid-feedback&quot; role=&quot;alert&quot;&gt;
                                  &lt;strong&gt;{{ $message }}&lt;/strong&gt;
                              &lt;/span&gt;
                          @enderror
                      &lt;/div&gt;
                      {{-- annual income --}}
                      &lt;div class=&quot;form-group col&quot;&gt;
                          &lt;label&gt;&lt;b&gt;
                                  &lt;h6&gt;22. Total Annual income&lt;/h6&gt;
                              &lt;/b&gt;&lt;/label&gt;
                          &lt;input type=&quot;number&quot;
                              class=&quot;form-control border-info border-2 mb-2 @error('annual_income') is-invalid @enderror&quot;
                              name=&quot;annual_income&quot; placeholder=&quot;Enter the state&quot;&gt;
                          @error('annual_income')
                              &lt;span class=&quot;invalid-feedback&quot; role=&quot;alert&quot;&gt;
                                  &lt;strong&gt;{{ $message }}&lt;/strong&gt;
                              &lt;/span&gt;
                          @enderror
                      &lt;/div&gt;
                  &lt;/div&gt;
                  {{-- anticipated income --}}
                  &lt;div class=&quot;form-group &quot;&gt;
                      &lt;label&gt;&lt;b&gt;
                              &lt;h6&gt;23. Anticipated income(if any) from Vehical/ Machinery to be purchased&lt;/h6&gt;
                          &lt;/b&gt;
                      &lt;/label&gt;
                      &lt;input type=&quot;number&quot; class=&quot;form-control border-info border-2 mb-2&quot; name=&quot;anticipated_income&quot;
                          placeholder=&quot;Enter the state&quot;&gt;
                  &lt;/div&gt;
  
                  {{-- income taxes --}}
                  &lt;div class=&quot;form-group&quot;&gt;
                      &lt;label&gt;&lt;b&gt;
                              &lt;h6&gt;24. Income Tax for the pass two years &lt;/h6&gt;
                          &lt;/b&gt;&lt;/label&gt;
                      &lt;table style=&quot;width:100%&quot;&gt;
                          &lt;thead&gt;
                              &lt;tr&gt;
                                  &lt;td&gt;&lt;b&gt;
                                          &lt;h6&gt;Year:&lt;/h6&gt;
                                      &lt;/b&gt;&lt;/td&gt;
                                  &lt;td&gt;&lt;b&gt;
                                          &lt;h6&gt;Assessable:&lt;/h6&gt;
                                      &lt;/b&gt;&lt;/td&gt;
                                  &lt;td&gt;&lt;b&gt;
                                          &lt;h6&gt;Taxable:&lt;/h6&gt;
                                      &lt;/b&gt;&lt;/td&gt;
                                  &lt;td&gt;&lt;b&gt;
                                          &lt;h6&gt;Tax:&lt;/h6&gt;
                                      &lt;/b&gt;&lt;/td&gt;
  
                              &lt;/tr&gt;
                              &lt;tr&gt;
                                  &lt;td&gt;&lt;input type=&quot;number&quot; name=&quot;incomeTax_year1&quot;
                                          class=&quot;form-control border-info border-2 mb-2&quot; placeholder=&quot;&quot;&gt;
                                  &lt;/td&gt;
                                  &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;incomeTax_assessable1&quot;
                                          class=&quot;form-control border-info border-2 mb-2&quot; placeholder=&quot;&quot;&gt;&lt;/td&gt;
                                  &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;incomeTax_taxable1&quot;
                                          class=&quot;form-control border-info border-2 mb-2&quot; placeholder=&quot;&quot;&gt;&lt;/td&gt;
                                  &lt;td&gt;&lt;input type=&quot;number&quot; name=&quot;incomeTax_tax1&quot;
                                          class=&quot;form-control border-info border-2 mb-2&quot; placeholder=&quot;&quot;&gt;
                                  &lt;/td&gt;
  
                              &lt;/tr&gt;
                              &lt;tr&gt;
                                  &lt;td&gt;&lt;input type=&quot;number&quot; name=&quot;incomeTax_year2&quot;
                                          class=&quot;form-control border-info border-2 mb-2&quot; placeholder=&quot;&quot;&gt;
                                  &lt;/td&gt;
                                  &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;incomeTax_assessable2&quot;
                                          class=&quot;form-control border-info border-2 mb-2&quot; placeholder=&quot;&quot;&gt;&lt;/td&gt;
                                  &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;incomeTax_taxable2&quot;
                                          class=&quot;form-control border-info border-2 mb-2&quot; placeholder=&quot;&quot;&gt;&lt;/td&gt;
                                  &lt;td&gt;&lt;input type=&quot;number&quot; name=&quot;incomeTax_tax2&quot;
                                          class=&quot;form-control border-info border-2 mb-2&quot; placeholder=&quot;&quot;&gt;
                                  &lt;/td&gt;
                              &lt;/tr&gt;
  
                          &lt;/thead&gt;
                      &lt;/table&gt;
                  &lt;/div&gt;
  
  
                  {{-- hirer_nic --}}
                  &lt;div class=&quot;form-group py-3 border-2 border-top border-bottom&quot;&gt;
                      &lt;label class=&quot;form-label&quot; for=&quot;hirer_nic&quot;&gt;&lt;b&gt;
                              Enter hirer's NIC or Driving License &lt;span style=&quot;color:#ff0000&quot;&gt;*&lt;/span&gt;
                          &lt;/b&gt;&lt;/label&gt;
                      &lt;input type=&quot;text&quot; id=&quot;hirer_nic&quot;
                          class=&quot;form-control border-primary border-2 @error('hirer_nic') is-invalid @enderror&quot;
                          name=&quot;hirer_nic&quot; value=&quot;{{ old('hirer_nic') }}&quot; autocomplete=&quot;hirer_nic&quot; autofocus&gt;
  
                      @error('hirer_nic')
                          &lt;span class=&quot;invalid-feedback&quot; role=&quot;alert&quot;&gt;
                              &lt;strong&gt;{{ $message }}&lt;/strong&gt;
                          &lt;/span&gt;
                      @enderror
                  &lt;/div&gt;
  
  
                  &lt;button type=&quot;submit&quot; class=&quot;btn btn-info&quot;&gt;Next&lt;/button&gt;
  
              &lt;/form&gt;
  
          &lt;/div&gt;
      &lt;/div&gt;
      {{-- &lt;/div&gt; --}}
  
  
      {{-- form ends --}}
  @endsection
  </code></pre>
  <p><strong>Route</strong></p>
  <pre><code>Route::get('hirer/1/h/4', [HirerFormController::class, 'startForm_4'])-&gt;name('start.hirerForm-4');
  
  Route::post('hirer/store/h/4', [Hirer_4Controller::class, 'storeForm4'])-&gt;name('store.hirerForm-4');
  </code></pre>
  <p>I am grateful if anyone solves this for me, and I am open to any solution.</p>