From 7be47337d8c9d5b63111a87192e51183125e050c Mon Sep 17 00:00:00 2001 From: Amine Ben hammou Date: Sat, 5 Dec 2015 20:53:35 +0100 Subject: [PATCH] README updated --- README.md | 4 ++ lumen-test/app/Console/Commands/.gitkeep | 0 lumen-test/app/Console/Kernel.php | 29 ++++++++++++ lumen-test/app/Events/Event.php | 10 +++++ lumen-test/app/Exceptions/Handler.php | 44 +++++++++++++++++++ .../app/Http/Controllers/Controller.php | 10 +++++ .../app/Http/Middleware/ExampleMiddleware.php | 20 +++++++++ lumen-test/app/Http/routes.php | 16 +++++++ lumen-test/app/Jobs/Job.php | 25 +++++++++++ lumen-test/app/Listeners/Listener.php | 11 +++++ .../app/Providers/AppServiceProvider.php | 19 ++++++++ .../app/Providers/EventServiceProvider.php | 19 ++++++++ .../database/factories/ModelFactory.php | 21 +++++++++ lumen-test/database/migrations/.gitkeep | 0 lumen-test/database/seeds/DatabaseSeeder.php | 21 +++++++++ 15 files changed, 249 insertions(+) create mode 100644 lumen-test/app/Console/Commands/.gitkeep create mode 100644 lumen-test/app/Console/Kernel.php create mode 100644 lumen-test/app/Events/Event.php create mode 100644 lumen-test/app/Exceptions/Handler.php create mode 100644 lumen-test/app/Http/Controllers/Controller.php create mode 100644 lumen-test/app/Http/Middleware/ExampleMiddleware.php create mode 100644 lumen-test/app/Http/routes.php create mode 100644 lumen-test/app/Jobs/Job.php create mode 100644 lumen-test/app/Listeners/Listener.php create mode 100644 lumen-test/app/Providers/AppServiceProvider.php create mode 100644 lumen-test/app/Providers/EventServiceProvider.php create mode 100644 lumen-test/database/factories/ModelFactory.php create mode 100644 lumen-test/database/migrations/.gitkeep create mode 100644 lumen-test/database/seeds/DatabaseSeeder.php diff --git a/README.md b/README.md index dc6255c..43c8ea4 100644 --- a/README.md +++ b/README.md @@ -632,6 +632,10 @@ To test the generators, I included a fresh lumen installation under the folder ` - Generated migrations file names changed to be supported by `migrate` command. +- **Version 1.1.1** + + - Pivot table generation from the `wn:resources` command bug fixed. + ## Contributing Pull requests are welcome :D diff --git a/lumen-test/app/Console/Commands/.gitkeep b/lumen-test/app/Console/Commands/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/lumen-test/app/Console/Kernel.php b/lumen-test/app/Console/Kernel.php new file mode 100644 index 0000000..ad6e311 --- /dev/null +++ b/lumen-test/app/Console/Kernel.php @@ -0,0 +1,29 @@ +get("/", function () use ($app) { + return $app->welcome(); +}); diff --git a/lumen-test/app/Jobs/Job.php b/lumen-test/app/Jobs/Job.php new file mode 100644 index 0000000..2bc4975 --- /dev/null +++ b/lumen-test/app/Jobs/Job.php @@ -0,0 +1,25 @@ +app->register('Wn\Generators\CommandsServiceProvider'); + } +} diff --git a/lumen-test/app/Providers/EventServiceProvider.php b/lumen-test/app/Providers/EventServiceProvider.php new file mode 100644 index 0000000..ff72210 --- /dev/null +++ b/lumen-test/app/Providers/EventServiceProvider.php @@ -0,0 +1,19 @@ + [ + 'App\Listeners\EventListener', + ], + ]; +} diff --git a/lumen-test/database/factories/ModelFactory.php b/lumen-test/database/factories/ModelFactory.php new file mode 100644 index 0000000..ae7165b --- /dev/null +++ b/lumen-test/database/factories/ModelFactory.php @@ -0,0 +1,21 @@ +define(App\User::class, function ($faker) { + return [ + 'name' => $faker->name, + 'email' => $faker->email, + 'password' => str_random(10), + 'remember_token' => str_random(10), + ]; +}); diff --git a/lumen-test/database/migrations/.gitkeep b/lumen-test/database/migrations/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/lumen-test/database/seeds/DatabaseSeeder.php b/lumen-test/database/seeds/DatabaseSeeder.php new file mode 100644 index 0000000..4d222bb --- /dev/null +++ b/lumen-test/database/seeds/DatabaseSeeder.php @@ -0,0 +1,21 @@ +call(ProjectsTableSeeder::class); + + Model::reguard(); + } +}