webNeat / lumen-generators

A collection of generators for Lumen and Laravel 5.
MIT License
352 stars 95 forks source link

Issue with Lumen 5.4 #41

Open cisaman opened 7 years ago

cisaman commented 7 years ago

I m unable to get artisan commands to make controller, model.

I got this when running "php artisan list"

Laravel Framework Lumen (5.4.6) (Laravel Components 5.4.*)

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
      --env[=ENV]       The environment the command should run under
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  help                Displays help for a command
  list                Lists commands
  migrate             Run the database migrations
 auth
  auth:clear-resets   Flush expired password reset tokens
 cache
  cache:clear         Flush the application cache
  cache:forget        Remove an item from the cache
  cache:table         Create a migration for the cache database table
 db
  db:seed             Seed the database with records
 make
  make:migration      Create a new migration file
  make:seeder         Create a new seeder class
 migrate
  migrate:install     Create the migration repository
  migrate:refresh     Reset and re-run all migrations
  migrate:reset       Rollback all database migrations
  migrate:rollback    Rollback the last database migration
  migrate:status      Show the status of each migration
 queue
  queue:failed        List all of the failed queue jobs
  queue:failed-table  Create a migration for the failed queue jobs database table
  queue:flush         Flush all of the failed queue jobs
  queue:forget        Delete a failed queue job
  queue:listen        Listen to a given queue
  queue:restart       Restart queue worker daemons after their current job
  queue:retry         Retry a failed queue job
  queue:table         Create a migration for the queue jobs database table
  queue:work          Start processing jobs on the queue as a daemon
 schedule
  schedule:run        Run the scheduled commands
ShaunaGordon commented 7 years ago

It looks like you haven't fully installed it.

  1. Add the registration code to app/Providers/AppServiceProvider.php (see README for code).
  2. In app/bootstrap.php uncomment $app->withFacades();, $app->withEloquent(), and $app->register(App\Providers\AppServiceProvider::class);

Once you do that, php artisan list should show the items at the bottom under the wn heading.