承接 gerizal/core-module 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱: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.77k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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