artarts36/laravel-ru-currency

Laravel Rus Currency

1.0.0 2022-11-28 10:07 UTC

This package is auto-updated.

Last update: 2024-11-28 14:38:57 UTC


README

PHP Composer License: MIT Total Downloads

This package provides currencies with courses For Laravel

Installation

  1. Run: composer require artarts36/laravel-ru-currency
  2. Add provider ArtARTs36\LaravelRuCurrency\Provider\CurrencyProvider::class into your providers in app.php
  3. Run: php artisan migrate
  4. Run: php artisan db:seed --class="\ArtARTs36\LaravelRuCurrency\Database\Seeders\RuCurrencySeeder"
  5. Run: php artisan ru-currency:fetch-courses

If you see the error Target [Psr\Http\Client\ClientInterface] is not instantiable while building [ArtARTs36\LaravelRuCurrency\Operation\Course\Fetcher\CourseFetcher, ArtARTs36\CbrCourseFinder\Finder], then add the following line to your provider:

$this->app->bind(ClientInterface::class, \GuzzleHttp\Client::class);

Commands for Application

Development Console