2017 © Pedro Peláez
 

library larapages

A simple CMS build on Laravel 5

image

nickdekruijk/larapages

A simple CMS build on Laravel 5

  • Thursday, May 3, 2018
  • by nickdekruijk
  • Repository
  • 1 Watchers
  • 2 Stars
  • 178 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 21 Versions
  • 2 % Grown

The README.md

The future of LaraPages

nickdekruijk/admin is the next evolution of the LaraPages package in early development. New features include localisation, improved GUI design, beter authentication with user roles and it will be even easier to implement in your Laravel project. As soon as all current larapages fuctionality is ported into the new package this nickdekruijk/larapages repo won't be updated anymore but will remain online for historical reference., (*1)

LaraPages

A simple CMS build on Laravel 5 (requires 5.1 or higher). Basically it's a webbased editor for your Laravel models. Each model must have a $pagesAdmin array. See the samples folder for an example. A basic media/filemanager is included too., (*2)

Installation

To install package use
composer require nickdekruijk/larapages
or
composer require nickdekruijk/larapages:dev-master, (*3)

For Laravel 5.4 and lower add the Service Provider to the 'providers' array in config/app.php, (*4)

NickDeKruijk\LaraPages\LaraPagesServiceProvider::class,

Add the larapages middleware to the $routeMiddleware array in app/Http/Kernel.php, (*5)

'larapages' => \NickDeKruijk\LaraPages\LaraPagesAuth::class,

After installing for the first time publish the css/js/config with, (*6)

php artisan vendor:publish --provider="NickDeKruijk\LaraPages\LaraPagesServiceProvider", (*7)

After a composer update publish the public assets again with, (*8)

php artisan vendor:publish --tag=public --force --provider="NickDeKruijk\LaraPages\LaraPagesServiceProvider", (*9)

Configuration

After installation (if you did php artisan vendor:publish) a default config file called larapages.php will be available in your Laravel app/config folder., (*10)

Frontend

To get you started an example model and migration is provided in the samples folder. To use the Frontend template and to parse the pages add this to your routes.php (Laravel 5.2 and earlier) or web.php (Laravel 5.3 or later) if you use the Page model from our sample, (*11)

Route::get('{any}', 'PageController@route')->where('any', '(.*)');

Enable Preview button while editing a model

If you use pagesAdmin['preview'] like this:, (*12)

'preview' => '/preview/page/{id}',          # Enable preview button, links to this url

you will need a route that enables it. For example add this to your web.php or routes.php:, (*13)

Route::get('/preview/page/{id}', function ($id) {
    $page = App\Page::findOrFail($id);
    if (!View::exists($page->view)) $page['view']='detail';
    return view($page->view, compact('page'));
})->middleware('larapages');

The Versions

03/05 2018

dev-master

9999999-dev http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

13/01 2018

1.0.x-dev

1.0.9999999.9999999-dev http://www.larapages.nl

A simple, lightweight yet complete Laravel 5.5+ admin panel and backend

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms backend admin panel

11/01 2018

0.8.x-dev

0.8.9999999.9999999-dev http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

11/01 2018

0.8.0

0.8.0.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

10/10 2017

0.7.0

0.7.0.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

28/04 2017

0.6.5

0.6.5.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

15/04 2017

0.6.4

0.6.4.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

21/03 2017

0.6.3

0.6.3.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

27/02 2017

0.6.2

0.6.2.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

26/02 2017

0.6.1

0.6.1.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

25/02 2017

0.6.0

0.6.0.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

26/01 2017

0.5.1

0.5.1.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

09/12 2016

0.5.0

0.5.0.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

19/04 2016

0.4.1

0.4.1.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

18/03 2016

0.4.0

0.4.0.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

17/03 2016

0.3.2

0.3.2.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

18/02 2016

0.3.1

0.3.1.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

17/02 2016

0.3.0

0.3.0.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

17/02 2016

0.2.0

0.2.0.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

15/01 2016

0.1.1

0.1.1.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms

15/01 2016

0.1.0

0.1.0.0 http://www.larapages.nl

A simple CMS build on Laravel 5

  Sources   Download

MIT

The Requires

 

by Nick de Kruijk

laravel cms