title: how to pass variable from one page to another in laravel
body: <p>I have been working on a project where the data from the form page will be displayed in the admin page for the admin approval. After submitting data, it will return the user to the same form page with success message. I got the value in the admin page but the system returns the user to the admin page instead of the form page. Here is my code on the controller. </p>
  
  <pre><code>class RehomeController extends Controller
  {
      public function rehome(Request $show){
  
              $breed = $show-&gt;input('breed');
              $gender = $show-&gt;input('gender');
              $age = $show-&gt;input('age');
              $color = $show -&gt;color;
              $height = $show -&gt;height;
              $description = $show -&gt;description;
              $health = $show -&gt;health;
              return view('admin.posts')-&gt;with('breed',$breed);
  
      }
  }
  </code></pre>