Closed brendt closed 6 years ago
Hey @freekmurze @brendt
As it's so similar to generating an Eloquent Model, and is extending Illuminate\Console\GeneratorCommand
, are tests required?
Are you happy with the stub contents? Guess could also have the (empty) constructor?
PS: regarding https://github.com/spatie/laravel-view-models/pull/5
Also: updating README.md for instructions on adding service provider for Laravel versions <5.5?
Underway in #5
Much like how
php artisan make:model
worksphp artisan make:view-model MyViewModel
should create a newMyViewModel
class inapp/ViewModels
,php artisan make:view-model "MyCustomNamespace\MyViewModel"
should create a newMyViewModel
inapp/MyCustomNameSpace/ViewModels
.