2017 © Pedro Peláez
 

library blog

blog module

image

zwarthoorn/blog

blog module

  • Tuesday, May 26, 2015
  • by zwarthoorn
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Zwarthoorns Blog Module.

this is a blog module build oppon main admin core Admincore also from me you need that package aswel else the Blog Module whont work. you can get it from package gist or from github. https://packagist.org/packages/zwarthoorn/admincore, (*1)

information

this package is using laravel 5.0. also it is using the laravel packages for form and html please install this by yourself., (*2)

instalation

first you add this to the required field in your json file, (*3)

"require": {
        "zwarthoorn/blog": "dev-master"

    },

add service provider to the service provider array

'Zwarthoorn\Blog\ServiceProvider'

and in the ailias

'Blog'=> 'Zwarthoorn\Blog\Facades\Blog',
'Response'=> 'Zwarthoorn\Blog\Facades\Response'

usage

first of all all blogpost will be maneged in the full admin panel and you dont have to worry about them, (*4)

Now for getting the blog post we are going to runn a simple command thare are facades so it will not be that hard, (*5)

if you want to have a blogpost you need to use Blog like so;, (*6)

use Blog

afther this you have 3 options first getting all the blogpost this will give you all the post on order of submittet., (*7)

Blog::allBlogs();

this will be a clean array with all the blogpost you have in your database. (functions for publish and concept are not done yet so it will not be a factor for now), (*8)

you can also find a single blogpost with a slug all the blogpost are prefabt with a slug so dont hasetate., (*9)

Blog::findBlog(slug);

and last but not least find a blog by slug and with all the response's with it already., (*10)

Blog::findBlogWithResponse(slug);

this will create a nice array that will look like this, (*11)

array(
'blogpost'=> your blogpost,
'response'=> all the responses that are with this blogpost in a array
)

in a later date thare will be a function so you dont have to do valadation yourself and response woth have to come from you with a function. this will be added later, (*12)

The Versions

26/05 2015

dev-master

9999999-dev

blog module

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar zwarthoorn