Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

check if config exist laravel

if (config()->has('some.key')) {
    // Get configuration value from config file
} else {
    // Get configuration value from database
}
 
PREVIOUS NEXT
Tagged: #check #config #exist #laravel
ADD COMMENT
Topic
Name
7+3 =