public function fire()
{
if ($this->option("getset")) {
// load the get/set function stubs
$folder = __DIR__ . '/../stubs/';
$this->setFunctionStub = $this->files->get($folder . "setFunction.stub");
$this->getFunctionStub = $this->files->get($folder . "getFunction.stub");
}
// create rule processor
$this->ruleProcessor = new RuleProcessor();
$this->databaseEngine = config('database.default', 'mysql');
\DB::connection()->setFetchMode(\PDO::FETCH_CLASS);
$tables = $this->getSchemaTables();
foreach ($tables as $table) {
$this->generateTable($table->name);
}
}