Skip to content

Commit

Permalink
Move default base_url setting to be able to skip it
Browse files Browse the repository at this point in the history
  • Loading branch information
danielboendergaard committed May 12, 2016
1 parent a3b86e2 commit bb34973
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Laravel/LaravelServiceProvider.php
Expand Up @@ -25,7 +25,7 @@ public function register()

$this->app->singleton('phantom-pdf', function () {
$generator = new PdfGenerator;
$generator->setBaseUrl($this->app['config']['phantom-pdf.base_url'] ?: url('/'));
$generator->setBaseUrl($this->app['config']['phantom-pdf.base_url']);
$generator->setBinaryPath($this->app['config']['phantom-pdf.binary_path']);
$generator->setStoragePath($this->app['config']['phantom-pdf.temporary_file_path']);
$generator->setTimeout($this->app['config']['phantom-pdf.timeout']);
Expand Down
2 changes: 1 addition & 1 deletion src/config/config.php
Expand Up @@ -24,7 +24,7 @@
|
*/

'base_url' => null,
'base_url' => url('/'),

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit bb34973

Please sign in to comment.