/** * Get an item from an array using "dot" notation. * * @param array $array * @param string $key * @param mixed $default * @return mixed */ function array_get($array, $key, $default = null) { return Arr::get($array, $key, $default); }
/** * Run migrations for the specified module. * * @param string $slug * * @return mixed */ protected function migrate($slug) { if (!$this->module->exists($slug)) { return $this->error('Module does not exist.'); } $pretend = Arr::get($this->option(), 'pretend', false); $path = $this->getMigrationPath($slug); $this->migrator->run($path, $pretend); // foreach ($this->migrator->getNotes() as $note) { if (!$this->option('quiet')) { $this->line($note); } } if ($this->option('seed')) { $this->call('module:seed', ['module' => $slug, '--force' => true]); } }