addConnection([ 'driver' => 'sqlite', 'database' => ':memory:', ]); $capsule->setEventDispatcher(new Dispatcher); $capsule->setAsGlobal(); $capsule->bootEloquent(); $capsule->schema()->dropIfExists('models'); $capsule->schema()->create('models', function(Blueprint $table) { $table->increments('id'); $table->string('string'); $table->string('email'); $table->timestamps(); });