repository( new FileStore( $this->app['files'], $this->app->basePath($config['path']), # relative to full $config['permission'] ?? null ) ); } /** * Create an instance of the group file cache driver. * @param string $group * @param string|null $name * @return \Illuminate\Cache\Repository */ public function createGroupFileDriver($group, $name = null) { $repository = $this->createFileDriver( $this->getConfig($name ?? 'file') ); $store = $repository->getStore(); $store->setDirectory( $store->getDirectory() . '/' . $group ); return $repository; } }