Nested ViewModel doesn't get created under the ViewModels namespace #42
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
When using the command
php artisan make:view-model Game/IndexGamesViewModel
a view model gets create under the namespaceApp\Game
instead ofApp\ViewModels\Game
as expected (e.g. compare themake:controller
command).As per https://github.com/spatie/laravel-view-models/blob/main/tests/ViewModelMakeCommandTest.php it is the desired behaviour but what about synchronizing it to other Laravel behaviours?
I'd be willing to contribute this enhancement.
The text was updated successfully, but these errors were encountered: