Installing Way's Generator in Laragon
-
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 filesC:\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?
λ
-
What is the instruction you are following, can I have the url?
-
If you use Laravel 5, just run this command:
composer require laracasts/generators --dev
Source: https://github.com/laracasts/Laravel-5-Generators-Extended
-
-
@kingsadave : I think you didn't follow the instruction properly. Let me help with some pics.
- Add these lines to your composer.json (pic 1):
"require-dev": { "way/generators": "~2.0" },
- Run compose (pic 2):
composer update --dev
- Add the service provider to app/config/app.php (pic 3):
'Way\Generators\GeneratorsServiceProvider',
- Run the artisan command (pic 4):
php artisan
That's all.
Pic 1:
Pic 2:
Pic 3:
Pic 4: