title: PHP Error: Call to undefined method stdClass::save() in Psy Shell code on line 1
body: <p>I'm new in Laravel, 
  I'm using tinker to create a record:</p>
  
  <pre><code>$Profile=new \App\Profile();
  =&gt; App\Profile {#3038}
  &gt;&gt;&gt; $profile-&gt;title='Premier Titre'
  PHP Warning:  Creating default object from empty value in Psy Shell code on line 1
  &gt;&gt;&gt; $profile-&gt;title='Premier Titre';
  =&gt; "Premier Titre"
  &gt;&gt;&gt; $profile-&gt;description='Description';
  =&gt; "Description"
  &gt;&gt;&gt; $profile-&gt;user_id=1;
  =&gt; 1
  &gt;&gt;&gt; $profile-&gt;save()
  PH
  </code></pre>
  
  <p>I have the following error:PHP Error:  Call to undefined method stdClass::save() in Psy Shell code on line 1</p>
  
  <p>Here my profile.php</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Profile extends Model
  {
      public function user()
  
  {
      return $this-&gt;belongsTo(User::class );
  }
  }
  </code></pre>
  
  <p>here is my migration code:</p>
  
  <pre><code>public function up()
      {
          Schema::create('users', function (Blueprint $table) {
              $table-&gt;bigIncrements('id');
              $table-&gt;string('name');
              $table-&gt;string('surname')-&gt;unique();
              $table-&gt;string('email')-&gt;unique();
              $table-&gt;timestamp('email_verified_at')-&gt;nullable();
              $table-&gt;string('password');
              $table-&gt;rememberToken();
              $table-&gt;timestamps();
          });
      }
  </code></pre>
  
  <p>thanks in advance</p>