There's quite a few changes in Scribe, and this guide aims to show you everything notable, as well as provide direct steps to migrate. Note that if you've customized your installation of mpociot/laravel-apidoc-generator heavily, you might want to copy your changes out and just start afresh, then manually merge your changes in. This guide should show you the key parts you need to change.
apidoc.php
to scribe.old.php
). Then install Scribe and publish the new config file via php artisan vendor:publish --provider="Knuckles\Scribe\ScribeServiceProvider" --tag=scribe-config
. Then copy over any changes you've made in the old one and delete it when you're done.Here are changes to look out for in scribe.php
:
laravel.autoload
key is now laravel.add_routes
, and is true
by default.logo
is now false
by default, so no logo spot will be shown. Relative paths and URLs are now supported too.auth
, info_text
). You might want to leverage them, so take a good look at what's available.It's a new package with a different name, so a few things have changed. This section is especially important if you've written any custom strategies or extended any of the provided classes.
route.old.blade.php
). Publish the new views via php artisan vendor:publish --provider="Knuckles\Scribe\ScribeServiceProvider" --tag=scribe-views
. Compare the two views and reconcile your changes, then delete the old views.The major change here is the introduction of the responseFields
section and the addition of description
for responses
.
public/docs/source
to the new location (resources/docs/source
)@apiResource
for Eloquent API resources