protected function prepare() { // check for an existing field with the same name if (!$this->sourceExists()) { throw new RuntimeException('The correct source for the plugin is missing'); } dir::make(dirname($this->destination())); }