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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire