skyhwk/repository

A simple repository package for Laravel and Lumen

1.0.1 2025-01-21 02:48 UTC

This package is auto-updated.

Last update: 2025-08-21 04:20:02 UTC


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!