Closed lamualfa closed 2 years ago
you can clone this repo lamualfa/joy-voyager-api-issue or follow the steps below from the scratch:
create laravel template
composer create-project laravel/laravel joy-voyager-api-issue
navigate to project folder
cd joy-voyager-api-issue
install vendor
composer install
generate laravel key
php artisan key:generate
install voyager
composer require joy/voyager-api
install voyager dummy data
php artisan voyager:install --with-dummy
install joy-voyager-api
publish provider
php artisan vendor:publish --provider="Joy\VoyagerApi\VoyagerApiServiceProvider" --force
generate api documentation
php artisan joy-voyager-api:l5-swagger:generate
run the laravel server
php artisan serve
access the api
http://localhost:8000/api/menus
and you'll get the error below:
Your “install voyager” step is wrong
As joy voyager-api-auth is added in dependency, you’ll need to setup passport as well
@rxcod9 thanks.
spesification
step to reproduce
you can clone this repo lamualfa/joy-voyager-api-issue or follow the steps below from the scratch:
create laravel template
navigate to project folder
install vendor
generate laravel key
install voyager
install voyager dummy data
install joy-voyager-api
publish provider
generate api documentation
run the laravel server
access the api
http://localhost:8000/api/menus
and you'll get the error below: