Using the command php artisan wn:model Models/Product generates Products.php inside the Models directory as expected but does not add the \Models postfix to the namespace and sets the class name as Models/Product.
Using PHP 7.1 and Lumen 5.4
<?php namespace App;
use Illuminate\Database\Eloquent\Model;
class Models/Product extends Model {
protected $fillable = [];
protected $dates = [];
public static $rules = [
// Validation rules
];
// Relationships
}
Using the command
php artisan wn:model Models/Product
generatesProducts.php
inside theModels
directory as expected but does not add the\Models
postfix to the namespace and sets the class name asModels/Product
.Using PHP 7.1 and Lumen 5.4