public static function cache()
    {
        $cache = [];

        $finder = (new Finder())
            ->files()
            ->name('/.+\.php/')
            ->in(ROOT . 'config');

        /** @var SplFileInfo $file */
        foreach ($finder as $file) {
            $category = str_ireplace('.php', '', $file->getFilename());
            $config = require $file->getRealPath();

            $cache[$category] = $config;
        }

        file_put_contents(ROOT . 'storage/crispysystem.config.php', serialize($cache));
    }