Skip to content

Commit db15a0b

Browse files
committed
Merge branch 'master' of github.com:archtechx/laravel-pages
2 parents c0c4ebe + f5066f7 commit db15a0b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ ArchTech\Pages\Page::routes();
3434

3535
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.
3636

37+
**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.**
38+
3739
## Usage
3840

3941
### Markdown pages
@@ -78,11 +80,11 @@ The config file lets you change:
7880
- the view file used to render Markdown pages
7981
- routing details
8082

81-
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`.`
83+
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`.
8284

8385
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`.
8486

85-
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()`):
87+
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()`):
8688

8789
```php
8890
Route::get('/{page}', ArchTech\Pages\PageController::class);

0 commit comments

Comments
 (0)