ryanmitchell
Okay,
I have tried just like:
public function restExtendQuery($query)
{
if (($token = $this->getToken()) && $token->isForCustomer())
$query->where(['customer_id', $token->tokenable_id], ['status_id', '!=', 1]);
return $query;
}
`public function restExtendQuery($query)
{
if (($token = $this->getToken()) && $token->isForCustomer())
$query->where('customer_id', $token->tokenable_id)->whereNotIn('status_id', 1);
return $query;
}`
but both of above not filtering the output!!