diff --git a/routes/web.php b/routes/web.php index ccd98dc..4eee6dc 100644 --- a/routes/web.php +++ b/routes/web.php @@ -16,8 +16,12 @@ } } + if (base_path('CHANGELOG.md')) { + $sections['change_log'] = file_get_contents(base_path('CHANGELOG.md')); + } + if (base_path('changelog.md')) { - $sections['changelog.md'] = file_get_contents(base_path('changelog.md')); + $sections['change_log'] = file_get_contents(base_path('changelog.md')); } return view('support::docs', [ diff --git a/src/SupportProvider.php b/src/SupportProvider.php index ba4b313..ebcffdf 100644 --- a/src/SupportProvider.php +++ b/src/SupportProvider.php @@ -33,6 +33,9 @@ public function boot() if (base_path('changelog.md')) { return ''; } + if (base_path('CHANGELOG.md')) { + return ''; + } }); Blade::directive('docs', function () {