protected function buildFileList() { $files = $this->fs->files($this->app->databasePath() . '/' . config('jables.folder')); foreach ($files as $file) { if ($this->fs->extension($file) == 'json') { $this->files[] = $file; } } }