/** * Execute the console command. * */ public function fire() { $this->info(' [ Welcome to ServerFireTeam Blog Installations ] '); $this->call('vendor:publish'); $this->call('migrate', array('--path' => 'vendor/serverfireteam/blog/src/database/migrations')); $this->call('panel:install'); // add blog to menu $link = new \Serverfireteam\Panel\Link(); $link->getAndSave('Blog', 'Blog'); $link->save(); }
/** * Execute the console command. * */ public function fire() { $this->info(' [ ServerFireTeam Panel Crud Generator ] '); $crudName = $this->argument('name'); $this->call('panel:createmodel', ['name' => $crudName]); $this->call('panel:createcontroller', ['name' => $crudName]); $link = new \Serverfireteam\Panel\Link(); $link->getAndSave($crudName, $crudName . 's'); $link->save(); if (!\Schema::hasTable($crudName)) { $this->info(' The Table Corresponding to this Model does not exist in Database!! '); $this->info(' Please Create this table '); } }