PHP Class Owl\Repositories\Eloquent\LikeRepository

Inheritance: implements Owl\Repositories\LikeRepositoryInterface
Exibir arquivo Open project: owl/owl

Protected Properties

Property Type Description
$like

Public Methods

Method Description
__construct ( Like $like )
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

__construct() public method

public __construct ( Like $like )
$like Owl\Repositories\Eloquent\Models\Like

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

Property Details

$like protected_oe property

protected $like