Installing Way's Generator in Laragon


  • | 456 points

    I want to install way's generator into my laravel application. I have followed the instruction from github, but I am not seeing the generator's file been downloaded. This is the error I get:

    C:\laragon\www 30/03/2016 13:19:13.80
    λ composer update --dev
    Warning: This development build of composer is over 60 days old. It is recommended to update it by running "C:\laragon\bin\composer\composer.phar self-update" to get the latest version.
    You are using the deprecated option "dev". Dev packages are installed by default now.
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Nothing to install or update
    Generating autoload files

    C:\laragon\www 30/03/2016 13:56:15.78

    I could not download it. But I saw a zipped files at the top from github, i was able to download this file. Is this is same files as the one i was trying to get through composer? If yes, wheer do i put all the downloaded files, so that i can make use of it for creating model, views, controllers etc?
    λ


  • administrators
    | 43981 points

    What is the instruction you are following, can I have the url?


  • administrators
    | 43981 points

    If you use Laravel 5, just run this command:

    composer require laracasts/generators --dev
    

    Source: https://github.com/laracasts/Laravel-5-Generators-Extended


  • | 456 points


  • administrators
    | 43981 points

    @kingsadave : I think you didn't follow the instruction properly. Let me help with some pics.

    1. Add these lines to your composer.json (pic 1):
     "require-dev": {                    
         "way/generators": "~2.0"        
     },                                  
    
    1. Run compose (pic 2):
    composer update --dev
    
    1. Add the service provider to app/config/app.php (pic 3):
      'Way\Generators\GeneratorsServiceProvider',  
    
    1. Run the artisan command (pic 4):
    php artisan
    

    That's all.

    Pic 1:
    0_1459349582799_pic1.png

    Pic 2:
    0_1459349928288_pic2.png

    Pic 3:
    0_1459349948268_pic3.png

    Pic 4:
    0_1459349965119_pic4.png


Log in to reply
 

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