Vérifiez si la configuration existe Laravel

if (config()->has('some.key')) {
    // Get configuration value from config file
} else {
    // Get configuration value from database
}
Lokesh003