skyhwk/repository
最新稳定版本:1.0.1
Composer 安装命令:
composer require skyhwk/repository
包简介
A simple repository package for Laravel and Lumen
README 文档
README
A simple repository package for Laravel and Lumen to store and retrieve text files.
1. Installation
Run the following command to install the package:
composer require skyhwk/repository
2. Setup in Laravel or Lumen
For Laravel
Add the service provider to config/app.php:
Providers:
Skyhwk\Repository\RepositoryServiceProvider::class,
Aliases:
'Repository' => Skyhwk\Repository.RepositoryFacade::class,
Run the following command to refresh the autoloader:
composer dump-autoload
For Lumen
Register the service provider by adding the following line in bootstrap/app.php:
$app->register(Skyhwk\Repository\RepositoryServiceProvider::class);
Add the alias:
class_alias(Skyhwk\Repository\RepositoryFacade::class, 'Repository');
Run the following command to refresh the autoloader:
composer dump-autoload
Now, you're ready to start using Skyhwk\Repository in your project!
统计信息
- 总下载量: 70
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-10