lavalite/page

This package is abandoned and no longer maintained. No replacement package was suggested.

Page package for Lavalite framework

v4.2.0 2016-07-20 18:33 UTC

This package is not auto-updated.

Last update: 2018-03-23 05:26:51 UTC


README

This is a Laravel 4 package that provides multilingual page interface for lavalite framework.

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require lavalite/page.

"lavalite/page": "dev-master"

Next, update Composer from the Terminal:

composer update

Once this operation completes, the final step is to add the service provider and page alias. Open app/config/app.php, and add a new item to the providers array.

'Lavalite\Page\PageServiceProvider'

And also add it to alias

'Page'  => 'Lavalite\Page\Facades\Page',

Use the below commands for publishing

Migration and seeds

php artisan vendor:publish --provider="Lavalite\Page\Providers\PageServiceProvider" --tag="migrate"
php artisan vendor:publish --provider="Lavalite\Page\Providers\PageServiceProvider" --tag="seeds"

Configuration

php artisan vendor:publish --provider="Lavalite\Page\Providers\PageServiceProvider" --tag="config"

Views

php artisan vendor:publish --provider="Lavalite\Page\Providers\PageServiceProvider" --tag="view-public"
php artisan vendor:publish --provider="Lavalite\Page\Providers\PageServiceProvider" --tag="view-admin"

You are done!

Usage

Add pages through admin/pages

Browser to get page browse /{slug}.html

Calling other pages inside a view or function

{{Page::heading('slug')}}
{{Page::content('slug')}}
{{Page::title('slug')}}
{{Page::keyword('slug')}}
{{Page::description('slug')}}
{{Page::banner('slug')}}