메소드 | 설명 | |
---|---|---|
create ( array $data ) | Create new blog. | |
delete ( integer $id ) : boolean | Delete a blog. | |
findAllPublishedPaginated ( $perPage = 10 ) : Illuminate\Contracts\Pagination\LengthAwarePaginator | Paginate all published blogs. | |
findAllWithRelation ( ) : Illuminate\Database\Eloquent\Collection | |
Find all blog with category. | |
findPublishedById ( integer $id ) : Illuminate\Database\Eloquent\Collection | |
Get published blog by id. | |
getCreateForm ( ) : |
Get save blog form. | |
getUpdateForm ( ) : |
Get update blog form. | |
togglePublished ( integer $id ) : boolean | Change blog's published status. | |
toggleTop ( integer $id ) : boolean | Change blog's toped status. | |
update ( $id, array $data ) | Update new blog. |
public findAllPublishedPaginated ( $perPage = 10 ) : Illuminate\Contracts\Pagination\LengthAwarePaginator | ||
리턴 | Illuminate\Contracts\Pagination\LengthAwarePaginator |
public findAllWithRelation ( ) : Illuminate\Database\Eloquent\Collection | |
||
리턴 | Illuminate\Database\Eloquent\Collection | |
public findPublishedById ( integer $id ) : Illuminate\Database\Eloquent\Collection | |
||
$id | integer | |
리턴 | Illuminate\Database\Eloquent\Collection | |
public getCreateForm ( ) : |
||
리턴 |
public getUpdateForm ( ) : |
||
리턴 |
public togglePublished ( integer $id ) : boolean | ||
$id | integer | |
리턴 | boolean |