title: What is the best practice to show old value when editing a form in Laravel?
body: <p>I am writing the logic for an edit form and have some complications when displaying data in the inputs. </p>
  
  <p>When I initially show the form, I show the records values like: </p>
  
  <pre><code>value="{{$dog-&gt;title}}"
  </code></pre>
  
  <p>Then when the form does not pass the validation I need to show the old input, so that user does not loose what he has already input. So I need to have a way to display old data like: </p>
  
  <pre><code>value="{{old('title')}}"
  </code></pre>
  
  <p>Because I need to input old data in case it exists, I ended up with this code: </p>
  
  <pre><code>value="{{$dog-&gt;title or old('title')}}"
  </code></pre>
  
  <p>And in controller I check if Request has old input, I assign the $dog var a null value. </p>
  
  <p>I wanted to ask if that is considered an OK practice or is there a better and 'correct' way to do it? </p>