PHP Класс Yab\Quarx\Repositories\WidgetRepository

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
all ( ) : Illuminate\Database\Eloquent\Collection | static[] Returns all Widgets.
findWidgetsById ( integer $id ) : Collection | null | static | Widgets Find Widgets by given id.
getWidgetBySLUG ( integer $slug ) : Collection | null | static | Widgets Find Widgets by given slug.
paginated ( )
search ( $input )
store ( array $input ) : Widgets Stores Widgets into database.
update ( Widgets $widgets, array $input ) : Widgets Updates Widgets into database.

Описание методов

all() публичный Метод

Returns all Widgets.
public all ( ) : Illuminate\Database\Eloquent\Collection | static[]
Результат Illuminate\Database\Eloquent\Collection | static[]

findWidgetsById() публичный Метод

Find Widgets by given id.
public findWidgetsById ( integer $id ) : Collection | null | static | Widgets
$id integer
Результат Illuminate\Support\Collection | null | static | Widgets

getWidgetBySLUG() публичный статический Метод

Find Widgets by given slug.
public static getWidgetBySLUG ( integer $slug ) : Collection | null | static | Widgets
$slug integer
Результат Illuminate\Support\Collection | null | static | Widgets

paginated() публичный Метод

public paginated ( )

store() публичный Метод

Stores Widgets into database.
public store ( array $input ) : Widgets
$input array
Результат Widgets

update() публичный Метод

Updates Widgets into database.
public update ( Widgets $widgets, array $input ) : Widgets
$widgets Widgets
$input array
Результат Widgets