Courses

How to Build Laravel 11 API From Scratch

Generating API Documentation with Scribe

Summary of this lesson:
- Installing and configuring Scribe for API documentation
- Customizing documentation
- Adding endpoint descriptions and parameters using docblocks/attributes

In this lesson, we will talk about API documentation and how to generate it. This lesson will use Scribe to auto-generate documentation. At the end, we will have a similar page to the image below:


We can install Scribe via composer with the --dev flag because this package is for a development environment. And then publish the config file.

composer require --dev knuckleswtf/scribe
php artisan vendor:publish --tag=scribe-config

By default, Scribe is set to use...

The full lesson is only for Premium Members.
Want to access all 23 lessons of this course? (58 min read)

You also get:

  • 69 courses (majority in latest Laravel 11)
  • Premium tutorials
  • Access to repositories
  • Private Discord