Answer the question
In order to leave comments, you need to log in
Why is it installed when creating a composer project in PHPStorm, but when the composer is initialized after that, the package is not installed anymore?
The point is this. PHPStorm has several options for creating a project, of interest - creating a project by cloning it from a remote repository and creating a composer project. In the first case, you must first specify the settings for connecting to the git repository, and then initialize composer, in the second, on the contrary, first specify which composer package to install, and then we can enable versioning, where to use the same git.
The problem is that in the second case, for example, when installing laravel / laravel, everything happens as it should, not only the vendor folder appears in the project, but also the rest of the folders of the empty laravel project, but in the first case, the vendor folder just appears, and all this is connected in any project.
What could be the problem or how should the package installation parameters be specified, so that even in the case when composer is connected already in the created project, the packages from it are installed, and not just copied from them?
Answer the question
In order to leave comments, you need to log in
In the first case, you just update the composer dependencies, and in the second case, you create a Laravel project b and update the composer dependencies
M.b. I did not understand the question, but usually you clone the repository and it has a composer json file, then through the console you simply update the dependencies that are registered in the composer. After that everything should work. IMHO you're creating unnecessary problems for yourself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question