Updating Composer to use Ways Generator


  • | 456 points

    I am using laragon. I need to update the composer on my windows machine. The application is installed on C:\laragon\www\myapp. I went to the composer.json in myapp project and update it with this code:
    "require-dev":{
    "way/generators":"2.*"
    },

    for way's generator. I need to run: php artisan ../composer update --dev. This gives error of:Could not open Input File: ../composer
    Please, what can i do, I am new to laravel and laragon.


  • administrators
    | 56177 points

    composer is installed globally, so you just use composer not ../composer


  • | 456 points

    @leokhoa : I did that, but still show the same error as above.


  • administrators
    | 56177 points

    Did you run this?

    composer update --dev
    

  • | 456 points

    Yes, I did that but didn't worked. Now I see where the error is emanting from. I was running the command using my command prompt instead of running it on ther terminal of the laragon menu. Now it is fine. Thanks all the same. Up for you


  • administrators
    | 56177 points

    Cool, you should use Terminal, glad to hear it works :)


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.