A simple static pages package for Laravel 4.

v2.0 2016-08-13 00:00 UTC


Pages is a static page system for Laravel 4 applications.

Installation via Composer

Add this to you composer.json file, in the require object:

"dmyers/laravel-pages": "dev-master"

After that, run composer install to install Pages.

Add the service provider to app/config/app.php, within the providers array.

'providers' => array(
    // ...

Add a class alias to app/config/app.php, within the aliases array.

'aliases' => array(
    // ...
    'Pages' => 'Dmyers\Pages\Facade',

Laravel 4

Use the 1.0 branch or the v1.* tags for Laravel 4 support.


Publish the default config file to your application so you can make modifications.

$ php artisan config:publish dmyers/laravel-pages


To add a page, create a view in your app directory at 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:


Or if you just want the path to the page: