프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$template |
메소드 | 설명 | |
---|---|---|
__construct ( |
||
create ( $template ) : Illuminate\Database\Eloquent\Model | Create a new template. | |
delete ( $template_id ) : boolean | Delete a tempalte data. | |
getAll ( ) : Illuminate\Database\Eloquent\Collection | Get all template data. | |
getById ( $template_id ) : Illuminate\Database\Eloquent\Collection | Get template data by id. | |
updateTemplate ( $template_id, $template ) : Illuminate\Database\Eloquent\Model | Update a template data. |
public __construct ( |
||
$template |
public create ( $template ) : Illuminate\Database\Eloquent\Model | ||
$template | object display_title, title, tags, body | |
리턴 | Illuminate\Database\Eloquent\Model |
public getAll ( ) : Illuminate\Database\Eloquent\Collection | ||
리턴 | Illuminate\Database\Eloquent\Collection | | Illuminate\Database\Eloquent\Builder |
public getById ( $template_id ) : Illuminate\Database\Eloquent\Collection | ||
$template_id | int template_id | |
리턴 | Illuminate\Database\Eloquent\Collection | | Illuminate\Database\Eloquent\Builder |
public updateTemplate ( $template_id, $template ) : Illuminate\Database\Eloquent\Model | ||
$template_id | int | |
$template | object display_title, title, tags, body | |
리턴 | Illuminate\Database\Eloquent\Model |