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