PHP Class Yab\Quarx\Repositories\PageRepository

Exibir arquivo Open project: YABhq/Quarx Class Usage Examples

Public Methods

Method Description
all ( ) : Illuminate\Database\Eloquent\Collection | static[] Returns all Pages.
findPagesById ( integer $id ) : Collection | null | static | Pages Find Pages by given id.
findPagesByURL ( string $url ) : Collection | null | static | Pages Find Pages by given URL.
paginated ( )
published ( )
search ( $input )
store ( array $input ) : Pages Stores Pages into database.
update ( Pages $pages, array $input ) : Pages Updates Pages into database.

Method Details

all() public method

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

findPagesById() public method

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

findPagesByURL() public method

Find Pages by given URL.
public findPagesByURL ( string $url ) : Collection | null | static | Pages
$url string
return Illuminate\Support\Collection | null | static | Pages

paginated() public method

public paginated ( )

published() public method

public published ( )

store() public method

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

update() public method

Updates Pages into database.
public update ( Pages $pages, array $input ) : Pages
$pages Pages
$input array
return Pages