title: laravel, Creating default object from empty value, when using Eloquent
body: <p>am using laravel, and codeception ..</p>
  
  <p>i want to store the content of a form into a table called websites, i create a model Website.php, with the default template as documented, and a resource WebsiteController.php.</p>
  
  <p>the routes are working as expected according to codeception.</p>
  
  <p>i have the following code inside the store method of WebsiteController.php:</p>
  
  <pre><code>$website_name = Input::get('website_name');
  
  $website = new Website;
  $website-&gt;name = $website_name;       // line with the probleme
  $website-&gt;save();
  
  return 'success';
  </code></pre>
  
  <p>when i fill the form, and i send it, i get the error: Creating default object from empty value, pointing to the commented line above.</p>
  
  <pre><code>&lt;?php
  
  class Website extends Eloquent {
     // empty class
  }
  </code></pre>
  
  <p>the output of dd($website);</p>
  
  <pre><code>object(Website)#158 (20) { ["fillable":protected]=&gt; array(4) { [0]=&gt; string(4) "link" [1]=&gt; string(4) "type" [2]=&gt; string(4) "name" [3]=&gt; string(11) "description" } ["connection":protected]=&gt; NULL ["table":protected]=&gt; NULL ["primaryKey":protected]=&gt; string(2) "id" ["perPage":protected]=&gt; int(15) ["incrementing"]=&gt; bool(true) ["timestamps"]=&gt; bool(true) ["attributes":protected]=&gt; array(0) { } ["original":protected]=&gt; array(0) { } ["relations":protected]=&gt; array(0) { } ["hidden":protected]=&gt; array(0) { } ["visible":protected]=&gt; array(0) { } ["appends":protected]=&gt; array(0) { } ["guarded":protected]=&gt; array(1) { [0]=&gt; string(1) "*" } ["dates":protected]=&gt; array(0) { } ["touches":protected]=&gt; array(0) { } ["observables":protected]=&gt; array(0) { } ["with":protected]=&gt; array(0) { } ["morphClass":protected]=&gt; NULL ["exists"]=&gt; bool(false) }
  </code></pre>