files->get($this->getStubPath().'/migration.stub'); } // We also have stubs for creating new tables and modifying existing tables // to save the developer some typing when they are creating a new tables // or modifying existing tables. We'll grab the appropriate stub here. else { $stub = $create ? 'create.stub' : 'update.stub'; return $this->files->get($this->getStubPath()."/{$stub}"); } } /** * Get the path to the stubs. * * @return string */ public function getStubPath() { return __DIR__.'/stubs'; } }