title: What is the significance of Application URL in laravel 5
body: <p>in <code>Config/app.php</code> in laravel source, what is the actual use of <code>url</code> ?</p>
  
  <p>It says Application URL to be used by <code>artisan command line tool</code> , so what should it be actually?</p>
  
  <p>I mean should it be <code>http://mydomainname.com</code> or should it be <code>/var/www/laravel/</code> or <code>/var/www/laravel/public</code></p>
  
  <p>Current Configuration</p>
  
  <pre><code>/*
  |--------------------------------------------------------------------------
  | 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' =&gt; 'http://localhost/',
  </code></pre>
  
  <p>Provided my application source is located at <code>/var/www/</code> directory and laravel public folder is <code>/var/www/laravel/public</code>
  And the <code>http://mydomainname.com</code> is pointed to resolve at <code>/var/www/laravel/public</code> directory</p>
  
  <p>Use Case:</p>
  
  <p>I'll be using <code>laravel schedular</code>  from <code>/app/Console/Kernel.php</code> which will be dispatching <code>periodic sendMail commands</code> and that in turn will queue up the mails to be sent in database and <code>queue listner</code> than will process the queue as normal</p>
  
  <p>Queues are working fine at localhost (my local xamp server) however I am concerned as what should be the <code>url</code> value in production</p>