LikeDislikeRepository
class LikeDislikeRepository extends Repository (View source)
Class LikeDislikeRepository.
Methods
mixed
model()
No description
mixed
allPaginated(
int $perPage = 15,
null $appends = null,
array $columns = array('*'))
No description
from Repository
mixed
searchPaginated($field, $value,
int $perPage = 15,
null $appends = null,
array $columns = array('*'))
No description
from Repository
mixed
getLikesCount($video_id)
Get likes count.
mixed
getDislikesCount($video_id)
Get dislikes count.
mixed
getLikesAll($video_id)
Get likes all camps.
mixed
getDislikesAll($video_id)
Get dislikes all camps.
int
checkIfDataExists($data)
Check if database contains data.
Details
in Repository at line line 29
__construct(
Container $app)
Repository constructor.
at line line 16
mixed
model()
in Repository at line line 45
mixed
all(
array $columns = array('*'))
in Repository at line line 57
mixed
allPaginated(
int $perPage = 15,
null $appends = null,
array $columns = array('*'))
in Repository at line line 69
mixed
search($field, $value,
array $columns = array('*'))
in Repository at line line 83
mixed
searchPaginated($field, $value,
int $perPage = 15,
null $appends = null,
array $columns = array('*'))
in Repository at line line 93
mixed
create(
array $data)
in Repository at line line 105
mixed
update(
array $data, $id,
string $attribute = 'id')
in Repository at line line 116
mixed
updateFillable(
array $data, $model)
in Repository at line line 128
mixed
delete($id)
in Repository at line line 139
mixed
findOrFail($id,
array $columns = array('*'))
in Repository at line line 151
mixed
findBy($attribute, $value,
array $columns = array('*'))
in Repository at line line 161
Model|mixed
makeModel()
at line line 28
mixed
getLikesCount($video_id)
Get likes count.
at line line 42
mixed
getDislikesCount($video_id)
Get dislikes count.
at line line 56
mixed
getLikesAll($video_id)
Get likes all camps.
at line line 70
mixed
getDislikesAll($video_id)
Get dislikes all camps.
at line line 84
int
checkIfDataExists($data)
Check if database contains data.