PHP Class Yab\Quarx\Repositories\FileRepository

显示文件 Open project: YABhq/Quarx

Public Methods

Method Description
all ( ) : Illuminate\Database\Eloquent\Collection | static[] Returns all Files.
apiPrepared ( )
findFilesById ( integer $id ) : Collection | null | static | Files Find Files by given id.
paginated ( ) : Illuminate\Database\Eloquent\Collection | static[] Paginated Files.
search ( string $input ) : array Search for files.
store ( array $input ) : Files Stores Files into database.
update ( Files $files, array $input ) : Files Updates Files into database.

Method Details

all() public method

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

apiPrepared() public method

public apiPrepared ( )

findFilesById() public method

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

paginated() public method

Paginated Files.
public paginated ( ) : Illuminate\Database\Eloquent\Collection | static[]
return Illuminate\Database\Eloquent\Collection | static[]

store() public method

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

update() public method

Updates Files into database.
public update ( Files $files, array $input ) : Files
$files Files
$input array
return Files