Exemplo n.º 1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $logTypesHelper = new LogTypes();
     $logTypes = $logTypesHelper->getLogTypes();
     foreach ($logTypes as $key => $value) {
         $logType = new LogType();
         $logType->key = $key;
         $logType->description = $value;
         $logType->save();
     }
 }