Closed
Description
Published configuration includes a default server named v1
:
Lines 29 to 31 in 7425ef2
But publishing the configuration does not create required files for that server. \App\JsonApi\V1\Server
does not exist.
Artisan command to create the server fails because the server is already registered:
$ php artisan jsonapi:server v1
Server v1 is already registered in your JSON:API configuration.
Must remove the server registration in config/jsonapi.php
before creating the required files with artisan command.
jsonapi:server
artisan command does not register the created server in config/jsonapi.php
. Registration deleted before running the command must be added again manually after running it.
Steps to reproduce
- Create a new laravel project with composer installer
composer create-project laravel/laravel example-app cd example-app
- Install laravel-json-api/laravel (tested with
v1.0.0-alpha.1
)composer config minimum-stability alpha composer require laravel-json-api/laravel composer require --dev laravel-json-api/testing
- Publish configuration
php artisan vendor:publish --provider="LaravelJsonApi\Laravel\ServiceProvider"
- Try to create server
php artisan jsonapi:server v1
Metadata
Metadata
Assignees
Labels
No labels