reliqarts/laravel-common
最新稳定版本:v8.0.4
Composer 安装命令:
composer require reliqarts/laravel-common
包简介
Reliq Arts' base/common classes and functions for Laravel.
README 文档
README
Reliq Arts' base/common classes and functions for Laravel 6+.
Features/Contents
- Config provider implementation
- uses
Illuminate\Contracts\Config\Repository - allows easy access to config keys under specific (package) 'namespace'
- uses
Illuminate\Filesystemimplementation- Specifically changing the behaviour of
deleteDirectory()
- Specifically changing the behaviour of
- Monolog Logger
- Result Object (simple DTO)
- Version Provider
- Sitemap generation command
- via Spatie's Laravel Sitemap
- NonWWW middleware: Tiny middleware to redirect all www requests to non-www counterparts.
Installation & Use
Install via composer:
composer require reliqarts/laravel-common
Add service provider:
ReliqArts\ServiceProvider::class,
Use anywhere throughout your application. e.g.
$versionProvider = resolve(ReliqArts\Contract\VersionProvider::class); $versionProvider->getVersion();
Use NonWWW middleware in Kernel. i.e.
'web' => [ // ... \ReliqArts\NonWWW\Http\Middleware\NonWWW::class, // ... ],
All done! 🍻
统计信息
- 总下载量: 3.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 8
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-24