From 83b6a6d1dc294be77401cf813fab21ba1008802d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 6 Aug 2021 14:12:57 +0200 Subject: [PATCH 1/3] Fix formatting --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 019dd0c..fa93def 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ The config file lets you change: - the view file used to render Markdown pages - routing details -The layout is used *by* the vendor (package-provided) Markdown view. You'll likely want to set it to something like ``app-layout` or `layouts.app`.` +The layout is used *by* the vendor (package-provided) Markdown view. You'll likely want to set it to something like `app-layout` or `layouts.app`. If you'd like to change the file that renders the Markdown itself, create `resources/views/pages/_markdown.blade.php` (the `_` prefix is important as it prevents direct visits) and change the `pages.views.markdown` config key to `pages._markdown`. From 2f6039a81b1cec072e95ecb5ef556debb2e439fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sun, 8 Aug 2021 18:22:04 +0200 Subject: [PATCH 2/3] Mention layout configuration in install instructions (fix #2) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index fa93def..6e4eb86 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,8 @@ ArchTech\Pages\Page::routes(); This line will register the routes in a way that ensures that your routes take precedence, and the page route is only used as the final option. +**Important: Before attempting to visit URLs managed by this package, make sure that you configure it to use the correct layout (see the section below). Otherwise you might get an error saying that the view cannot be found.** + ## Usage ### Markdown pages From f5066f792fbb5fd9b68fcd83452b17773f4051ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sun, 8 Aug 2021 19:28:34 +0200 Subject: [PATCH 3/3] Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6e4eb86..e2da597 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ The layout is used *by* the vendor (package-provided) Markdown view. You'll like If you'd like to change the file that renders the Markdown itself, create `resources/views/pages/_markdown.blade.php` (the `_` prefix is important as it prevents direct visits) and change the `pages.views.markdown` config key to `pages._markdown`. -And if you'd like to customize the routing logic more ethan the config file allows you, simply register the route yourself (instead of calling `Page::routes()`): +And if you'd like to customize the routing logic more than the config file allows you, simply register the route yourself (instead of calling `Page::routes()`): ```php Route::get('/{page}', ArchTech\Pages\PageController::class);