{"_id":"563c220c7539dd0d00dbee87","version":{"_id":"563b65bd9e3f2225009fd2bf","project":"563b65bd9e3f2225009fd2bc","__v":4,"createdAt":"2015-11-05T14:20:45.639Z","releaseDate":"2015-11-05T14:20:45.639Z","categories":["563b65be9e3f2225009fd2c0","563b6b25e951f60d000b4513","563c239e260dde0d00c5e890","563c2440260dde0d00c5e891"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"4.0.0","version":"4.0"},"user":"563b65409e3f2225009fd2b9","__v":2,"project":"563b65bd9e3f2225009fd2bc","category":{"_id":"563c2440260dde0d00c5e891","__v":3,"pages":["563c244fac77910d00279fe9","563c2463ae97cc0d00a8fed4","563c4d28260dde0d00c5e8a6"],"project":"563b65bd9e3f2225009fd2bc","version":"563b65bd9e3f2225009fd2bf","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-11-06T03:53:36.298Z","from_sync":false,"order":3,"slug":"the-package","title":"Lavalite Packages"},"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-06T03:44:12.514Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"This is a Laravel 4 package that provides multilingual page interface for lavalite framework.\n\n## Installation\n\nBegin by installing this package through Composer. Edit your project's `composer.json` file to require `lavalite/page`.\n\n    \"lavalite/page\": \"dev-master\"\n\nNext, update Composer from the Terminal:\n\n    composer update\n\nOnce 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.\n\n```php\n'Lavalite\\Page\\PageServiceProvider'\n```\n\nAnd also add it to alias\n\n```php\n'Page'  => 'Lavalite\\Page\\Facades\\Page',\n```\n\nUse the below commands for publishing\n\nMigration and seeds\n\n    php artisan vendor:publish --provider=\"Lavalite\\Page\\Providers\\PageServiceProvider\" --tag=\"migrate\"\n    php artisan vendor:publish --provider=\"Lavalite\\Page\\Providers\\PageServiceProvider\" --tag=\"seeds\"\n\nConfiguration\n\n    php artisan vendor:publish --provider=\"Lavalite\\Page\\Providers\\PageServiceProvider\" --tag=\"config\"\n\nViews\n\n    php artisan vendor:publish --provider=\"Lavalite\\Page\\Providers\\PageServiceProvider\" --tag=\"view-public\"\n    php artisan vendor:publish --provider=\"Lavalite\\Page\\Providers\\PageServiceProvider\" --tag=\"view-admin\"\n\n\nYou are done!\n\n## Usage\n\nAdd pages through `admin/pages`\n\nBrowser to get page browse `/{slug}.html`\n\nCalling other pages inside a view or function\n```php\n{{Page::heading('slug')}}\n{{Page::content('slug')}}\n{{Page::title('slug')}}\n{{Page::keyword('slug')}}\n{{Page::description('slug')}}\n{{Page::banner('slug')}}\n```","excerpt":"Manage pages for the CMS","slug":"page","type":"basic","title":"Page"}

Page

Manage pages for the CMS

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. ```php 'Lavalite\Page\PageServiceProvider' ``` And also add it to alias ```php '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 ```php {{Page::heading('slug')}} {{Page::content('slug')}} {{Page::title('slug')}} {{Page::keyword('slug')}} {{Page::description('slug')}} {{Page::banner('slug')}} ```