in Config/app.php
in laravel source, what is the actual use of url
?
It says Application URL to be used by artisan command line tool
, so what should it be actually?
I mean should it be http://mydomainname.com
or should it be /var/www/laravel/
or /var/www/laravel/public
Current Configuration
/*
|--------------------------------------------------------------------------
| Application URL
|--------------------------------------------------------------------------
|
| This URL is used by the console to properly generate URLs when using
| the Artisan command line tool. You should set this to the root of
| your application so that it is used when running Artisan tasks.
|
*/
'url' => 'http://localhost/',
Provided my application source is located at /var/www/
directory and laravel public folder is /var/www/laravel/public
And the http://mydomainname.com
is pointed to resolve at /var/www/laravel/public
directory
Use Case:
I'll be using laravel schedular
from /app/Console/Kernel.php
which will be dispatching periodic sendMail commands
and that in turn will queue up the mails to be sent in database and queue listner
than will process the queue as normal
Queues are working fine at localhost (my local xamp server) however I am concerned as what should be the url
value in production