PHP Class Yab\Quarx\Repositories\ImageRepository

显示文件 Open project: YABhq/Quarx Class Usage Examples

Public Methods

Method Description
all ( ) : Illuminate\Database\Eloquent\Collection | static[] Returns all Images.
allTags ( ) : Illuminate\Database\Eloquent\Collection | static[] Returns all Images tags.
apiPrepared ( ) : Illuminate\Database\Eloquent\Collection | static[] Returns all Images for the API.
apiStore ( array $input ) : Images Stores Images into database.
findImagesById ( integer $id ) : Collection | null | static | Images Find Images by given id.
getImagesByTag ( $tag = null ) : Illuminate\Database\Eloquent\Collection | static[] Returns all Images for the API.
paginated ( )
published ( )
publishedAndPaginated ( )
search ( string $input ) : Collection Search the images.
store ( array $input ) : Images Stores Images into database.
update ( Images $images, array $input ) : Images Updates Images into database.

Method Details

all() public method

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

allTags() public method

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

apiPrepared() public method

Returns all Images for the API.
public apiPrepared ( ) : Illuminate\Database\Eloquent\Collection | static[]
return Illuminate\Database\Eloquent\Collection | static[]

apiStore() public method

Stores Images into database.
public apiStore ( array $input ) : Images
$input array
return Images

findImagesById() public method

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

getImagesByTag() public method

Returns all Images for the API.
public getImagesByTag ( $tag = null ) : Illuminate\Database\Eloquent\Collection | static[]
return Illuminate\Database\Eloquent\Collection | static[]

paginated() public method

public paginated ( )

published() public method

public published ( )

publishedAndPaginated() public method

store() public method

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

update() public method

Updates Images into database.
public update ( Images $images, array $input ) : Images
$images Images
$input array
return Images