Skip to content

Install Laravel Lang Packages, in --dev mode? #201

Closed Answered by andrey-helldar
luisprmat asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed, when packages were scarce, the bulk of them were destined for the dev area.

For example, to be able to use the facade in production to get a list of installed localizations, you had to do the following:

composer require laravel-lang/common --dev
composer require laravel-lang/locales

But now the number of packages useful for production has outgrown the number of packages, and it turns out that the documentation recommends doing so:

composer require laravel-lang/common --dev
composer require laravel-lang/locales laravel-lang/models laravel-lang/routes laravel-lang/json-fallback

That is, it offers to manually install 4 dependencies in the production area while leaving 5 packages in the

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andrey-helldar
Comment options

Answer selected by andrey-helldar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants