ahmadsyamim / voyager-pages
Ahoy! - A package to implement pages into Voyager
0.2.13
2020-03-27 03:22 UTC
Requires
- tcg/voyager: ^1.1.8
Requires (Dev)
- phpunit/phpunit: ^8.5
README
This Laravel/Voyager module adds Pages to Voyager.
Built by Pivotal Agency.
Prerequisites
- Composer Installed
- Install Laravel
- Install Voyager
Installation
# 1. Require this Package in your fresh Laravel/Voyager project composer require pvtl/voyager-pages # 2. Run the Installer php artisan voyager-pages:install
Usage
Installation generates a new database and BREAD table "pages", which is also available as menu item in Voyager. Voyager Pages implicitly adds web routes to your Laravel installation according to defined slugs in pages
entries. Additionally, web route /
is overridden to display home
page.
Views Customization
In order to override views delivered by Voyager Pages, copy contents from vendor/pvtl/voyager-pages/resources/views
to the views/vendor/voyager-pages
directory of your Laravel installation.