'Artisan returning localhost as url

I'm using Laravel 5.2.43 to build an application. My config/app.php reads as follows:

'url' => env('APP_URL', 'http://domain.dev'),

and in the .env file

APP_URL=domain.dev

my schedule send an email with a link back to the website. But this url is returned as http://localhost instead of http://domain.dev. Can someone help?



Solution 1:[1]

It seems you need to had http:// to your APP_URL so in your case the app URL in the config file should be http://domain.dev

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ravened writer