Answers for "use env in laravel"

PHP
0

laravel generate env

cp .env.example .env
php artisan key:generate
Posted by: Guest on October-06-2021
2

get env app url laravel

env('APP_URL')
Posted by: Guest on November-28-2020
2

laravel APP_ENV config

if (\Illuminate\Support\Facades\App::environment('production')) {
    // The environment is production
}
Posted by: Guest on November-10-2020

Browse Popular Code Answers by Language