public function storagePath() { if (is_dir(storage_path($this->id))) { return storage_path($this->id); } else { \Storage::makeDirectory($this->id); if (is_dir(storage_path($this->id))) { return storage_path($this->id); } return '/'; } }