Example #1
0
 public function sqlInfo()
 {
     $indexService = new \Home\Service\IndexService();
     $data[] = $indexService::getVersion();
     $data[] = $indexService->DbTables();
     ppd($data);
 }
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function fire()
 {
     $this->comment('Creating your theme...');
     $theme = $this->config->get('bootstrap::theme.style');
     $location = $this->config->get('bootstrap::theme.src');
     ppd($theme);
     $commands = $this->theme->generateTheme($theme, $location);
     $this->ssh->runCommands($commands);
     $this->comment('Finished creating theme.');
 }
 /**
  * Return the current color values for the site
  *
  * @return array
  */
 public function getEntry()
 {
     $lines = file($this->colors);
     foreach ($lines as $key => $line) {
         if (trim($line) == '') {
             unset($lines[$key]);
         }
     }
     //ppd($lines);
     $colorLocations = ['bg' => ['variable' => '@bg', 'title' => 'Background Color', 'line' => 0], 'gray' => ['variable' => '@gray', 'title' => 'Main Gray', 'line' => 1], 'primary' => ['variable' => '@brand-primary', 'title' => 'Primary Color', 'line' => 2], 'info' => ['variable' => '@brand-info', 'title' => 'Information Color', 'line' => 3], 'success' => ['variable' => '@brand-success', 'title' => 'Success Color', 'line' => 4], 'warning' => ['variable' => '@brand-warning', 'title' => 'Warning Color', 'line' => 5], 'danger' => ['variable' => '@brand-danger', 'title' => 'Error Color', 'line' => 6], 'menu' => ['variable' => '@menuColor', 'title' => 'Active Menu Link Color', 'line' => 7]];
     foreach ($colorLocations as $key => $colorLocation) {
         $colorLocations[$key]['hex'] = $this->findHex($lines, $colorLocation['variable'], $colorLocation['line']);
     }
     ppd($colorLocations);
     $colors['bg'] = ['title' => 'Background Color', 'hex' => trim(substr(explode('@bg: ', $lines[0])[1], 0, -2))];
     $colors['gray'] = ['title' => 'Main Gray', 'hex' => trim(substr(explode('@gray: ', $lines[1])[1], 0, -2))];
     $colors['primary'] = ['title' => 'Primary Color', 'hex' => trim(substr(explode('@brand-primary: ', $lines[2])[1], 0, -2))];
     $colors['info'] = ['title' => 'Information Color', 'hex' => trim(substr(explode('@brand-info: ', $lines[3])[1], 0, -2))];
     $colors['success'] = ['title' => 'Success Color', 'hex' => trim(substr(explode('@brand-success: ', $lines[4])[1], 0, -2))];
     $colors['warning'] = ['title' => 'Warning Color', 'hex' => trim(substr(explode('@brand-warning: ', $lines[5])[1], 0, -2))];
     $colors['danger'] = ['title' => 'Error Color', 'hex' => trim(substr(explode('@brand-danger: ', $lines[6])[1], 0, -2))];
     $colors['menu'] = ['title' => 'Active Menu Link Color', 'hex' => trim(substr(explode('@menuColor: ', $lines[7])[1], 0, -2))];
     return $colors;
 }
 public function kuaidi()
 {
     ppd('快递查询,等待开发');
 }