phptr / core-component-repository
My awesome package
dev-main
2023-05-03 17:24 UTC
Requires
- php: ^7.3|^8.1
- illuminate/support: *
Requires (Dev)
- mockery/mockery: >=0.7.2
- phpspec/phpspec: ~2.0
- phpunit/phpunit: *
- satooshi/php-coveralls: ^0.7.0
- scrutinizer/ocular: ~1.1
This package is auto-updated.
Last update: 2024-12-24 09:50:06 UTC
README
Installation
You can install the package via composer:
composer require phptr/core-component-repository @dev
If You face any error try this via composer:
composer require phptr/core-component-repository @dev --ignore-platform-reqs
Usage
Add this line under providers array in config/app.php
MehediIitdu\CoreComponentRepository\CoreComponentRepositoryServiceProvider::class
In Controller
Add this at the top of controller
use CoreComponentRepository;
In Controller method
Add this in controller method. You can use it in any method in controller;
CoreComponentRepository::instantiateShopRepository();
Changelog
Please see CHANGELOG for more information what has changed recently.
Credits
- Md Ronju (https://github.com/mdronju)
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.