title: Laravel base table or view not found
body: <p>Im my routes.php I have the following content:</p>
  
  <pre><code>&lt;?php
  
  Route::group(array(), function () {
      View::share('roots', Category::roots()-&gt;get());
      $tree = Category::get()-&gt;toHierarchy()-&gt;toArray();
      View::share('categories', $tree);
  
      Route::get('/', array('as' =&gt; 'home', 'uses' =&gt; 'HomeController@index'));
  });
  </code></pre>
  
  <p>When my database has no tables yet and I want to do php artisan migrate
  the result is: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ae_dev.categories' doesn't exist</p>
  
  <p>My migration file:</p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Database\Schema\Blueprint;
  use Illuminate\Database\Migrations\Migration;
  
  class CreateCategoriesTable extends Migration {
  
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up() {
      Schema::create('categories', function(Blueprint $table) {
        $table-&gt;increments('id');
        $table-&gt;integer('parent_id')-&gt;nullable()-&gt;index();
        $table-&gt;integer('lft')-&gt;nullable()-&gt;index();
        $table-&gt;integer('rgt')-&gt;nullable()-&gt;index();
        $table-&gt;integer('depth')-&gt;nullable();
        $table-&gt;string('name', 255);
  
        $table-&gt;timestamps();
      });
    }
  
    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down() {
      Schema::drop('categories');
    }
  
  }
  </code></pre>
  
  <p>I think that Laravel tray to call Category from routes.php and want to do select or somethink so I want to run the migration which creates categories table, but the above error is produced before...</p>
  
  <p>How can I fix this?</p>