title: Load Laravel eloquent attribute by string
body: <p>I am storing some strings in my database, and I want to be able to get model attributes using them.</p>
  
  <p>Basically, I can call a users booking like this</p>
  
  <pre><code>$user-&gt;bookings-&gt;date
  </code></pre>
  
  <p>in my controller and it works, and i'm storing a string in my database like this</p>
  
  <pre><code>'user-&gt;bookings-&gt;date'
  </code></pre>
  
  <p>How can I use this string from the database to get the attribute? I'm hoping to be able to do something like</p>
  
  <pre><code>$user = User::findOrFail(1);
  $string = 'user-&gt;bookings-&gt;date'; //This is fetched from the db normally
  $booking_date = ${$string}; //Instead of writing $user-&gt;bookings-&gt;date
  </code></pre>
  
  <p>Is this possible?</p>