Looking to hire Laravel developers? Try LaraJobs

laravelphp-docs maintained by tripteki

Description
Trip Teknologi's Codebase Convention
Last update
2023/11/28 05:38 (dev-main)
License
Downloads
237

Comments
comments powered by Disqus

Trip Teknologi's Codebase Convention.

Getting Started

Installation :

$ composer require tripteki/laravelphp-docs

How to use :

  • Put Tripteki\Docs\Providers\DocsServiceProvider::ignoreConfig() into register provider, then publish config file into your project's directory with running (optionally) :
php artisan vendor:publish --tag=tripteki-laravelphp-docs-config
  • Put the comment onto the App\Http\Controllers\Controller :
/**
 * @OA\Info(
 *      title="Application Programming Interface",
 *      version="1.0"
 * ),
 * @OA\SecurityScheme(
 *      securityScheme="bearerAuth",
 *      in="header",
 *      type="http",
 *      scheme="bearer",
 *      bearerFormat="JWT"
 * )
 */

Usage

php artisan swagger:generate

Author