title: Laravel, creating schema and models
body: <p>I'm learning laravel and struggling with one thing, </p>
  
  <p>what is the use of laravel model class: </p>
  
  <pre><code>class User extends Model
  </code></pre>
  
  <p>when still I have to do mapping like this:</p>
  
  <pre><code>  public function handle()
  {
      $this-&gt;createUserTable();
  }
  
  private function createUserTable()
  {
      Schema::dropIfExists('user');
      Schema::create('user', function ($table) {
          $table-&gt;increments('user_id');
      });
  }
  </code></pre>
  
  <p>and add it to artisan commands etc etc. , for example I need mapping ManyToOne, then should I define it both in Model class , and then in Artisan script? Or is it somehow out of the box?? </p>
  
  <p>I mean where is the place to connect both my hand written-sql-like-mapping with User model class</p>