title: Eloquent firstOrCreate documentation or usage
body: <p>I'm attempting to seek a table to see if a column named "name" exists if so return the value and if not create that row with a null value i saw firstOrCreate but i cannot figure out how to use it for the life of me.</p>
  
  <p>This is what i currently have, can someone lend a hand?</p>
  
  <pre><code> class Settings extends Eloquent
          {
              protected $table = 'settings';
              protected $primaryKey = 'name';
  
              public static function get($settingName)
                  {
                      return self::firstOrCreate(array('name' =&gt; $settingName));
  //                    return self::select(array('value'))-&gt;where('name', '=', $settingName)-&gt;first()-&gt;value;
                  }
          }
  </code></pre>