定制 ace-blog-package/package 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ace-blog-package/package

Composer 安装命令:

composer require ace-blog-package/package

包简介

Blog Management

README 文档

README

composer require ace-blog-package/package

Install ACE Blog

php artisan vendor:publish --provider="ACE\ACEBlog\ACEBlogServiceProvider"

php artisan ACEBlog:install

May be for local disk you need to create symbolic link

ln -s ../storage/app/images public/images

User Model

add these functions to your user model

public static function aceblog_auth_user() { if(auth()->check()) { return ['id'=>auth()->user()->id,'name'=>auth()->user()->first_name.' '.auth()->user()->last_name]; } return null; } public static function get_user_by_id($id) { $user=User::find($id); return ['id'=>$user->id,'name'=>$user->first_name.' '.$user->last_name]; }

for admin dashboard

yourdomain/ACE-Blog

Git -> You need to add following line in .gitignore because we have css and js files

/public/vendor/ACEBlog

API Usage

Get All Posts

yourdomain/api/blog/posts

Get Single Posts

yourdomain/api/blog/post/post_id

Usage

There are some helper functions that can be used to apply custom logics

Get All Categories

aceblog_categories()

Get All Posts

aceblog_posts()

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-12