I don't get it - when I search for this problem I get told to do the followng:
composer dump-autoload php artisan config:clear php artisan cache:clear php artisan view:clear
And yet it is not making a difference. In my .env
file: PASS_DOMAIN=domain.local
In my /config/app.php
file: 'pass_domain' => env('PASS_DOMAIN', 'example.com'),
Yet in my middleware located in /app/Http/Middleware/
if I place the following:
dd(config('pass_domain'));
I get nothing. Why cant I access this variable? Originally I had env('pass_domain')
but nothing is letting me see this damn variable.
Any help?
尝试这个
dd(config('app.pass_domain'));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.