isPublic()) return base_path() . $uploadsDir . '/public/'; else return base_path() . $uploadsDir . '/protected/'; } /** * Define the public address for the storage path. */ public function getPublicDirectory() { $uploadsDir = Config::get('cms.uploadsDir'); if ($this->isPublic()) return Request::getBasePath() . $uploadsDir . '/public/'; else return Request::getBasePath() . $uploadsDir . '/protected/'; } }