2017 © Pedro Peláez
 

library platform-publish

Add on publishing capabilities (pages and menus) to platform-core

image

codesleeve/platform-publish

Add on publishing capabilities (pages and menus) to platform-core

  • Wednesday, April 23, 2014
  • by kelt
  • Repository
  • 2 Watchers
  • 3 Stars
  • 311 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 5 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

Getting Started

First add to composer.json, (*1)

    "codesleeve/platform-publish": "dev-master"

then add the service provider to the providers array in your app\config\app.php, (*2)

    'Codesleeve\Platform\Publish\ServiceProvider',

then run commands for database, (*3)

    php artisan migrate --package codesleeve/platform-publish

Models provided with publish

Codesleeve\Platform\Publish\Models\Menu

Name of the menu that hasMany menulinks., (*4)

  • title - the title of the menu

Links that belong to a menu, attributes are:, (*5)

  • title - title of this menu link
  • url - url of this menu link
  • menu_id - belongsTo menu
  • page_id - belongTo page (this can be null)

Codesleeve\Platform\Publish\Models\Page

Content of a page that can be displayed, attributes are:, (*6)

  • title - title of page
  • content - html content of page
  • layout - a particular view that you want to embed page content within
  • slug - human identifer for this page, primarily used to route to

Codesleeve\Platform\Publish\Models\Photo

This is a place to store photos at. It uses Codesleeve\Stapler to handle uploads and it can be used with the wysiwyg uploader too., (*7)

Helper functions (possibly?)

menulinks($title)
Returns an array of menulinks that belong to the menu with given title
page($slug or $id)
Returns the given page with this slug or id

The Versions

23/04 2014

dev-master

9999999-dev

Add on publishing capabilities (pages and menus) to platform-core

  Sources   Download

MIT

The Requires

 

The Development Requires

by Travis

24/03 2014

v0.0.1

0.0.1.0

Add on publishing capabilities (pages and menus) to platform-core

  Sources   Download

MIT

The Requires

 

by Travis