jeudi 19 novembre 2020

config not working on production in laravel

I have Defined in .env file

MID = DE121323123
CALLBACK_URL = https://test.com/
MERCHANT_KEY = @32g#!hjcvxv

also defined config/app.php

'mid' => env('MID'),
'callback' => env('CALLBACK_URL'),
'marchendkey' => env('MERCHANT_KEY'),

and i am calling on my view page

    $mid=  config('app.mid');
    $callback=  config('app.callback');
    $printBarcodeUrl = config('app.marchendkey');

it's working fine in my localhost but its not working on my live server(production), i have also used given commands before the production

php artisan route:cache
php artisan config:clear
php artisan clear-compiled
php artisan cache:clear
php artisan config:cache
php artisan view:clear

but not working on my live server

also did APP_ENV=productionin env file



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2ULrz2Z
via IFTTT

Aucun commentaire:

Enregistrer un commentaire