We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03c1c96 commit 6d92297Copy full SHA for 6d92297
src/Repository.php
@@ -58,6 +58,15 @@ public function makeModel()
58
return $this->model = $model;
59
}
60
61
+ /**
62
+ * Function to return an object of Query Builder
63
+ * @return \Illuminate\Database\Eloquent\Builder
64
+ */
65
+ public function newQuery()
66
+ {
67
+ return $this->model->newQuery();
68
+ }
69
+
70
/**
71
* Return all rows of model, select all columns default
72
* @param array $columns
src/RepositoryInterface.php
@@ -3,6 +3,8 @@
3
4
interface RepositoryInterface
5
{
6
+ public function newQuery();
7
8
public function all($columns = array('*'));
9
10
public function take($limit);
0 commit comments