Skip to content

Commit

Permalink
增加自定义视图的使用
Browse files Browse the repository at this point in the history
  • Loading branch information
jormin committed Apr 17, 2020
1 parent 92b8924 commit 5aebb20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controllers/DDocController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ private function initTablesData()
public function index()
{
$tables = $this->initTablesData();
return view('ddoc::index', compact('tables'));
$customerView = 'vendor.laravel-ddoc.index';
return view(view()->exists($customerView) ? $customerView : 'ddoc::index', compact('tables'));
}

/**
Expand Down

0 comments on commit 5aebb20

Please sign in to comment.