title: How to select a RAW column in an Eloquent Model?
body: <p>I would like to add a custom column in my Eloquent model such as: </p>
  
  <pre><code>class Shape extends Eloquent
  {
      public function getAreaAttribute()
      {
          return $this-&gt;width * $this-&gt;height;
      }
  }
  </code></pre>
  
  <p>Which allows to build a query such as this:</p>
  
  <pre><code>Shape::where('area', '&gt;', 42)-&gt;get();
  </code></pre>
  
  <p>What I could do is: </p>
  
  <pre><code>Shape::select(['*', DB::RAW('width * height AS area')])-&gt;where('area', '&gt;', 42)-&gt;get();
  </code></pre>
  
  <p>But this is not in my model. Is it possible to get something like:</p>
  
  <pre><code>class Shape extends Eloquent
  {
      public function getAreaColumn()
      {
          return DB::RAW('width * height AS area')
      }
  }
  </code></pre>