As far as I know, this setting has the purpose of defining which is the base url of the application when it is not possible to detect it automatically.
A basic example of this is running on the command line.
Consider the following example using the tinker
command (Laravel on the iterative mode command line) of artisan
.
First I leave the configuration file app/config/app.php
like this:
// Outras definições ...
'url' => ''
Then I do this on the command line:
php artisan tinker --env=local
> URL::to('/test');
The result returned is: '/test'
Now we change the configuration file again. This time I'll put a default url.
Example:
// Outras definições ...
'url' => 'http://stackoverflow.com.br/',
We run tinker
again:
php artisan tinker --env=local
> URL::to('/test');
The result is: 'http://stackoverflow.com.br/test'
;
So, notice that, in the absence of a "base url" for the system, Laravel
will use this url set to app/config/app.php
as the base url.