exists($fileName)) { Log::debug('Now seeding ' . $fileName); $file = json_decode($disk->get($fileName), true); // run the file: TestData::run($file); return; } Log::info('No seed file (' . $fileName . ') for environment ' . $env); } }