Closed jorgemudry closed 3 years ago
It fixes the issue https://github.com/flipboxstudio/lumen-generator/issues/96
composer.json
"require": { "php": "^7.3|^8.0", "laravel/lumen-framework": "^8.0", "flipbox/lumen-generator": "dev-fix_model_creation_path" }, "repositories": [ { "type": "vcs", "url": "https://github.com/jorgemudry/lumen-generator" } ]
$ composer update flipbox/lumen-generator;
make:model
$ php artisan make:model Account
Account.php
app/Models
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Account extends Model { // }
With the new version 8 of Lumen (and Laravel) models get created inside of the app/Models directory.
What does this Pull Request Do?
It fixes the issue https://github.com/flipboxstudio/lumen-generator/issues/96
How should this be manually tested?
composer.json
file:make:model
command:Account.php
model in yourapp/Models
directory looking like this:Any background context you want to provide?
With the new version 8 of Lumen (and Laravel) models get created inside of the
app/Models
directory.Any extra info?