PHP Interface Owl\Repositories\LikeRepositoryInterface

Mostrar archivo Open project: owl/owl

Public Methods

Method Description
destroy ( $user_id, $item_id ) : boolean Delete a "Like data".
firstOrCreate ( $user_id, $item_id ) : Illuminate\Database\Eloquent\Model get "Like data" or Store a "Like data".
get ( $user_id, $item_id ) : Illuminate\Database\Eloquent\Collection Get a "Like data".

Method Details

destroy() public method

Delete a "Like data".
public destroy ( $user_id, $item_id ) : boolean
$user_id int user_id
$item_id int item_id
return boolean

firstOrCreate() public method

get "Like data" or Store a "Like data".
public firstOrCreate ( $user_id, $item_id ) : Illuminate\Database\Eloquent\Model
$user_id int user_id
$item_id int item_id
return Illuminate\Database\Eloquent\Model

get() public method

Get a "Like data".
public get ( $user_id, $item_id ) : Illuminate\Database\Eloquent\Collection
$user_id int user_id
$item_id int item_id
return Illuminate\Database\Eloquent\Collection | Illuminate\Database\Eloquent\Builder