pointdeb / laravel-common
用于启动laravel应用的通用包。
v0.1.1
2019-08-12 11:21 UTC
Requires
- php: ^7.1
- illuminate/support: ^5.7
This package is auto-updated.
Last update: 2024-09-12 22:22:28 UTC
README
此包提供了用于开始项目的laravel通用功能。
安装
composer require pointdeb/laravel-common
校验器
在 AppServiceProvider.php 的 boot 函数中添加以下行
public function boot() { ... \Pointdeb\LaravelCommon\Validators\HttpValidator::boot(); }
ETAG
- Laravel: 在 Kernel.php 中注册中间件
protected $middleware = [ ... \App\Http\Middleware\Etag::class, ];
- Lumen: 在 app.php 中注册中间件
$app->middleware([ ... \Pointdeb\LaravelCommon\Middlewares\Etag::class, ]);
即将推出 😄
LICENCE MIT