Skip to content

Instantly share code, notes, and snippets.

@erenhatirnaz
Created November 3, 2021 05:50
Show Gist options
  • Save erenhatirnaz/26785080dededa16e4fd127af615c3ab to your computer and use it in GitHub Desktop.
Save erenhatirnaz/26785080dededa16e4fd127af615c3ab to your computer and use it in GitHub Desktop.
/**
* ...
*
* @OA\Schema(
* schema="Error",
* @OA\Property(property="code", type="string", description="Error code", example="common.not-found"),
* @OA\Property(property="message", type="string", description="Error message", example="Resource not found."),
* )
* @OA\Schema(
* schema="Success",
* @OA\Property(property="code", type="string", description="Code", example="success"),
* @OA\Property(property="data"),
* )
*
*/
class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment