Click here for more interview questions If the application in maintenance mode MaintenanceModeException exception will be throwing use the below command to make application down php artisan down application down with message php artisan down –message “some maintenance work gong on will be back soon” –retry=60 even in the maintenance mode some specific ip can… Read More »
Click here for more interview questions cache all configuration file into a single file, which load quickly by the framework php artisan config:cache normaly this will execute in the deployment,because local development configuration file frequntly changing. once configuration cached env file will not be loaded it will be null Click here for more interview questions
Click here for more interview questions configuration values stored in the app.php get the configuration value using the below code $value = config(‘app.timezone’); set the configuration value using the below code To set configuration values at runtime, pass an array to the config helper: config([‘app.timezone’ => ‘America/Chicago’]); Click here for more interview questions
Click here for more interview questions using the APP_ENV variable from the env file or using the App::environment();
its 32 character string generated while installing laravel.They can be set in .env file. We can generate the key using the command php artisan key:generate; Click here for more interview questions
first download the laravel using the composer composer global require “laravel/installer” laravel new blog another method as composer create-project –prefer-dist laravel/laravel blog Click here for more interview questions
php-7.13 open ssl php extension PDO php extension MBstring php extension Tokenizer php extension XML php extension Ctype php extension JSON php extension Click here for more interview questions
call and apply is using for the same purpose-access a function. difference between two is depends on how we are passing the parameters to the function. please see the example below CALL- we will pass arguments as comma seperated.function take arguments as seperately APPLY-we will pass the arguments as array. function arguments as array.
//Above function can access using call and apply as,
some characters included inside a single or double quotes is called string integer is non decimal numbers between a particular ranage.Integer must have atleast one digit,may be negative or positive,must not have decimal point.