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

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

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

techlink/blog

Composer 安装命令:

composer require techlink/blog

包简介

A blog powered by laravel package.

README 文档

README

This first blog package developed by me, since cms are almost a necessity for everyone. Here is a free open source starter boiler plate which is well tested with various assertions..

What does it include?

  • Contains auth routes for CRUD operations.
  • Contains Taxonomies (categories, tags), Posts.
  • Contain images, meta details for the taxonomies and posts.

File Names

  • Config file blog.php
  • ServiceProvider file BlogProvider.php
  • A list of components like Alert, InputText, InputTextarea, InputSelect, InputFile, InputSubmit, PostBlock and more.
  • Traits BlogUser, HasFactory, Image, Meta, Slug and more.
  • Service file BlogService.php

Features

  • Meta and Images table is automatically deleted.
  • Stored images is rename to hash name.
  • Both category and post is sync to a table named category_post.
  • Input form component like text, textarea, select, submit and more is redesigned for reusability.

The views can be easily customize by running the following command by publishing the view files. php artisan vendor:publish --provider="Techlink\Blog\Provider\BlogProvider

Config file contains various optional config variable which can be modified.

  • flash_variable used for setting up a flash session variable.
  • auth_model_paginate used for setting the total rows of record to show in the dashboard.

Installation and Usability

  • Initially publish the vendor files.
  • Add the BlogUserTrait into the User model from. use Techlink\Blog\Traits\BlogUserTrait
  • Run the migrations.
  • You are all done. Enjoy!

Web Route Structure

  • /blog/posts for the post index view.

  • /blog/posts/{postId}-{slug} for the post show view.

  • /blog/auth/posts for the auth post index view.

  • /blog/auth/posts/create for the post create view.

  • /blog/auth/posts/{postId}/edit for the post edit view.

  • /blog/categories/{categoryId}-{slug} for the category show view.

  • /blog/auth/categories for the auth category index view.

  • /blog/auth/categories/create for the category create view.

  • /blog/auth/categories/{categoryId}/edit for the category edit view.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-12-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固