composer require xgbnl/laravel-swagger
Edit App\Providers\AppServiceProvider
use Xgbnl\LaravelSwagger\SwaggerServiceProvider;
public function register()
{
// allow local env access
if ($this->app->isLocal()) {
$this->app->register(SwaggerServiceProvider::class);
}
}
php artisan swagger:publish
laravel.test/api/docs
You must assigned app url.
APP_URL=http://laravel.test