in Config/app.php
in laravel source, what is the actual use of url
?
上面说应用程序URL将被artisan command line tool
使用,那么它应该是什么呢?
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:
我将使用/app/Console/Kernel.php
中的laravel schedular
,它将调度periodic sendMail commands
,然后将在数据库中对要发送的邮件进行排队,而queue listner
将照常处理队列
在localhost(我的本地xamp服务器)上,队列工作正常,但我担心生产中的url
%值应该是多少