zwarthoorn/blog 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zwarthoorn/blog

Composer 安装命令:

composer require zwarthoorn/blog

包简介

blog module

README 文档

README

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

##information

this package is using laravel 5.0. also it is using the laravel packages for form and html please install this by yourself.

instalation

first you add this to the required field in your json file

"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

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

if you want to have a blogpost you need to use Blog like so;

use Blog

afther this you have 3 options first getting all the blogpost this will give you all the post on order of submittet.

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)

you can also find a single blogpost with a slug all the blogpost are prefabt with a slug so dont hasetate.

Blog::findBlog(slug);

and last but not least find a blog by slug and with all the response's with it already.

Blog::findBlogWithResponse(slug);

this will create a nice array that will look like this

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

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-22