/** * Handle the command. */ public function handle() { /** * Make all the widgets before * sending them to the dashboard. */ foreach ($this->dashboard->getWidgets() as $widget) { $widget->make(); } $this->dashboard->addData('widgets', $this->dashboard->getWidgets()); }
/** * Set an option value on the dashboard. * * @param $key * @param $value */ public function setDashboardOption($key, $value) { $this->dashboard->setOption($key, $value); }