You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following error is seen when generating the OpenAPI JSON from the command line (artisan openapi:generate). This is for a bare controller with no editing beyond the Laravel boilerplate for artisan make:controller --api; no #[attribute] annotations were added to the controller, only a Route::resource() entry in routes/api.php.
The following error is seen when generating the OpenAPI JSON from the command line (
artisan openapi:generate
). This is for a bare controller with no editing beyond the Laravel boilerplate forartisan make:controller --api
; no#[attribute]
annotations were added to the controller, only aRoute::resource()
entry inroutes/api.php
.Steps to Reproduce
composer create-project laravel/laravel myproject cd myproject
routes/api.php
file:php artisan openapi:generate
.This results in the error I included above.
Extra Info
brew install php@8.1
)Click for composer.json contents
The text was updated successfully, but these errors were encountered: