title: Laravel Mutator Database Value with Variable variables
body: <p>I have the following Laravel Eloquent Mutator</p>
  <pre><code>public function getUsedWorkingTimeAttribute($db = null)
  {
     return is_null($db) ? $this-&gt;getUsedDaysOfKind('working time', true, 120) : $db;
  }
  </code></pre>
  <p>When calling <code>$object-&gt;used_working_time</code> i get the value stored in the database as expected.</p>
  <p>When using Variable variables <code>$object-&gt;{'used_'.$name}</code> with <code>$name = 'working_time'</code> the <code>$db</code> value is null.</p>
  <p>Is there a way to get the database attribute with the second way. I am using Laravel 8.74 and PHP 8.0.</p>