Periksa apakah ada konfigurasi Laravel

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