Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Невозможно установить пакет с опцией --no-dev #3

Open
visavi opened this issue Oct 12, 2022 · 0 comments

Comments

@visavi
Copy link

visavi commented Oct 12, 2022

Фабрики к примеру https://github.com/avlyalin/laravel-sberbank-acquiring/blob/master/database/factories/GooglePayPaymentFactory.php
используют Faker который вынесен в секцию composer require-dev

При установке на проде с опцией composer install --no-dev
Установка падает


In DatabaseServiceProvider.php line 88:
                                   
  Class 'Faker\Factory' not found 

Приходится переносить faker в секцию dev

Не могли бы вы учитывать окружение APP_ENV=production в своих фабриках?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant