class VideoRepository extends Repository (View source)

Methods

__construct( Container $app)

Repository constructor.

mixed
model()

No description

mixed
all( array $columns = array('*'))

No description

mixed
allPaginated( int $perPage = 15, null $appends = null, array $columns = array('*'))

No description

mixed
search($field, $value, array $columns = array('*'))

No description

mixed
searchPaginated($field, $value, int $perPage = 15, null $appends = null, array $columns = array('*'))

No description

mixed
create( array $data)

No description

mixed
update( array $data, $id, string $attribute = 'id')

No description

mixed
updateFillable( array $data, $model)

No description

mixed
delete($id)

No description

mixed
findOrFail($id, array $columns = array('*'))

No description

mixed
findBy($attribute, $value, array $columns = array('*'))

No description

Model|mixed
makeModel()

No description

Video|best
best()

No description

Details

in Repository at line line 29
__construct( Container $app)

Repository constructor.

Parameters

Container $app

at line line 13
mixed model()

Return Value

mixed

in Repository at line line 45
mixed all( array $columns = array('*'))

Parameters

array $columns

Return Value

mixed

in Repository at line line 57
mixed allPaginated( int $perPage = 15, null $appends = null, array $columns = array('*'))

Parameters

int $perPage
null $appends
array $columns

Return Value

mixed

Parameters

$field
$value
array $columns

Return Value

mixed

in Repository at line line 83
mixed searchPaginated($field, $value, int $perPage = 15, null $appends = null, array $columns = array('*'))

Parameters

$field
$value
int $perPage
null $appends
array $columns

Return Value

mixed

in Repository at line line 93
mixed create( array $data)

Parameters

array $data

Return Value

mixed

in Repository at line line 105
mixed update( array $data, $id, string $attribute = 'id')

Parameters

array $data
$id
string $attribute

Return Value

mixed

in Repository at line line 116
mixed updateFillable( array $data, $model)

Parameters

array $data
$model

Return Value

mixed

in Repository at line line 128
mixed delete($id)

Parameters

$id

Return Value

mixed

in Repository at line line 139
mixed findOrFail($id, array $columns = array('*'))

Parameters

$id
array $columns

Return Value

mixed

in Repository at line line 151
mixed findBy($attribute, $value, array $columns = array('*'))

Parameters

$attribute
$value
array $columns

Return Value

mixed

in Repository at line line 161
Model|mixed makeModel()

Return Value

Model|mixed

Exceptions

RepositoryException

at line line 21
Video|best best()

Return Value

Video|best