Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
add and defer
Browse files Browse the repository at this point in the history
  • Loading branch information
Mombuyish committed Sep 17, 2018
1 parent c0ddeb4 commit 6a5a763
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/AutoPageServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

class AutoPageServiceProvider extends ServiceProvider
{
protected $defer = true;
/**
* Bootstrap services.
*
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class PageController extends Controller
public function page($slug, $one = null, $two = null, $three = null, $four = null, $five = null)
{
$prefix = config('auto-page.prefix') ?? 'pages';
$default = config('auto-page.default') ?? 'whoops';
$default = config('auto-page.whoops') ?? 'whoops';

$args = implode('', array_map(function($arg) {
return ! empty($arg) ? '.' . $arg : '';
Expand Down
2 changes: 1 addition & 1 deletion src/config/auto-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
* For example, users/ belong if having whoops.blade.php, it will return it firstly, otherwise aborting 404 page.
* Or you can customize file name whoops -> someone.
*/
'default' => 'whoops'
'whoops' => 'whoops'

];

0 comments on commit 6a5a763

Please sign in to comment.