abstract class BaseRepositoryApi extends \Prettus\Repository\Eloquent\BaseRepository
{
public function paginate($perPage = null, $page = null, $columns = ["*"])
{
$userModel = new User();
$userModel->where("user_type","seller");
$result = $userModel->paginate($perPage,$columns,null,$perPage);
return $result;
}
}
write that when this method is called, the where condition will not take effect.
however, if you write the code in the paginate method directly into controller, the where condition will apply correctly.
what the hell is this for?
my code is not written in controller