for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mpociot\ApiDoc\Http;
use Illuminate\Support\Facades\Storage;
class Controller
{
public function html()
return view('apidoc.index');
}
/**
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
*
* @return \Illuminate\Http\JsonResponse
*/
public function json()
return response()->json(
json_decode(Storage::disk(config('apidoc.storage'))->get('apidoc/collection.json'))
);