Свойство | Тип | Описание | |
---|---|---|---|
$relations | array | Blog relation. |
Метод | Описание | |
---|---|---|
__construct ( |
Create a new Blog instance. | |
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 __construct ( |
||
$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 |
protected static array $relations | ||
Результат | array |