dmyers / laravel-pages
This package is abandoned and no longer maintained.
No replacement package was suggested.
A simple static pages package for Laravel.
v2.1.0
2021-11-07 18:58 UTC
Requires
- php: ^5.4 || ^7.0 || ^8.0
- illuminate/support: ^5.0|^6.0|^7.0
Suggests
- anahkiasen/flatten: Add full page caching for speed.
README
Pages is a static page system for Laravel applications.
Installation
To get started, use Composer to add the package to your project's dependencies:
composer require dmyers/laravel-pages
Laravel 4
Use the 1.0
branch or the v1.*
tags for Laravel 4 support.
Configuration
Publish the default config file to your application so you can make modifications.
$ php artisan vendor:publish
Usage
To add a page, create a view in your resources directory at resources/views/pages
and the URL will map to the path. You can nest folders and they will be included in the URL.
In your views there is a helper you can use to link to pages:
page_url('about');
Or if you just want the path to the page:
page_path('about');