Skip to content

Instantly share code, notes, and snippets.

@byhbt
Last active June 14, 2018 15:03
Show Gist options
  • Save byhbt/9fcd78f01c9676dbe741c005159a6eb7 to your computer and use it in GitHub Desktop.
Save byhbt/9fcd78f01c9676dbe741c005159a6eb7 to your computer and use it in GitHub Desktop.
Definge swagger
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @SWG\Definition(
* definition="DirectoryLanguage",
* required={"id", "locale", "code", "name", "activated"},
* @SWG\Property(
* property="id",
* type="int"
* ),
* @SWG\Property(
* property="locale",
* type="string",
* description="Locale",
* example="VN_vi"
* ),
* @SWG\Property(
* property="code",
* type="string",
* description="Language code",
* example="VN"
* ),
* @SWG\Property(
* property="name",
* type="string",
* description="",
* example="Vietnamese"
* ),
* @SWG\Property(
* property="activated",
* type="boolean",
* description="Enable/Disable the language",
* example="0,1"
* ),
* )
*/
class DirectoryLanguage extends Model
{
public $timestamps = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment