jybtx/active

用于Laravel应用的辅助类,根据当前路由获取活动类。fork自 hieu-le/active

v0.1 2024-01-27 03:55 UTC

This package is auto-updated.

Last update: 2024-09-27 05:30:27 UTC


README

Build Status Latest Stable Version Code Climate Test Coverage Total Downloads License

用于Laravel应用的辅助类,根据当前URL获取活动类。

自7.0版本起,本库的主版本号将与Laravel的主版本号相匹配。

安装

将此包作为依赖项要求

composer require jybtx/active

如果你使用Laravel 5.5+,则无需手动注册 ServiceProvider 和 Alias。

将此行添加到 config/app.php 中的 providers 数组中

Jybtx\Active\ActiveServiceProvider::class,

将此行添加到 config/app.php 中的 aliases 数组中

'Active' => Jybtx\Active\Facades\Active::class,

用法

见: 如何使用 Active