PHP Class Yab\Quarx\Repositories\WidgetRepository

Show file Open project: YABhq/Quarx Class Usage Examples

Public Methods

Method Description
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.

Method Details

all() public method

Returns all Widgets.
public all ( ) : Illuminate\Database\Eloquent\Collection | static[]
return Illuminate\Database\Eloquent\Collection | static[]

findWidgetsById() public method

Find Widgets by given id.
public findWidgetsById ( integer $id ) : Collection | null | static | Widgets
$id integer
return Illuminate\Support\Collection | null | static | Widgets

getWidgetBySLUG() public static method

Find Widgets by given slug.
public static getWidgetBySLUG ( integer $slug ) : Collection | null | static | Widgets
$slug integer
return Illuminate\Support\Collection | null | static | Widgets

paginated() public method

public paginated ( )

store() public method

Stores Widgets into database.
public store ( array $input ) : Widgets
$input array
return Widgets

update() public method

Updates Widgets into database.
public update ( Widgets $widgets, array $input ) : Widgets
$widgets Widgets
$input array
return Widgets