addDefinitions([ 'storage.local.root' => getcwd() . '/storage', Filesystem::class => function (Container $c) { $root = $c->get('storage.local.root'); $adapter = new LocalFilesystemAdapter($root); return new Filesystem($adapter); }, ]); } public function boot(Container $container): void {} }