gerizal/core-module 问题修复 & 功能扩展

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

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

gerizal/core-module

最新稳定版本:1.3.0

Composer 安装命令:

composer require gerizal/core-module

包简介

Core Module for Core Web App Platform.

README 文档

README

Installation

composer require gerizal/core-module dev-master

Hooks

To use action and filter hooks, please follow these steps:

Open config/app.php file and add this to the providers array:

Modules\Core\Providers\CwaHookServiceProvider::class,

Next, add this to the aliases array:

'CwaHooks' => Modules\Core\Facades\CwaHooks::class,

If you open the Providers/CwaHookServiceProvider.php, there are action and filter hook for testing. To use those hooks, you can try something like this:

\CwaHooks::action('cwa.test.action.hook', 'awesome');
\CwaHooks::filter('cwa.test.filter.hook', 'awesome');

To test the hooks via blade template, you can try something like this:

@action('cwa.test.action.hook', 'awesome')
@filter('cwa.test.filter.hook', 'awesome')

Hooks Development

Right now, the action and filter hooks are just for testing. For future development, if there is some hooks that needs to be implemented in Core Web App, the main file to add hooks (both action and filter) will be in Providers/CwaHookServiceProvider.php.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-02-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固