skyhwk / repository
A simple repository package for Laravel and Lumen
1.0.1
2025-01-21 02:48 UTC
Requires
- php: >=7.4
- illuminate/support: ^8.0|^9.0|^10.0
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