We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1240ec2 commit 80cab9aCopy full SHA for 80cab9a
src/app/Library/CrudPanel/Traits/Query.php
@@ -2,8 +2,11 @@
2
3
namespace Backpack\CRUD\app\Library\CrudPanel\Traits;
4
5
+use Illuminate\Database\Query\Builder;
6
+
7
trait Query
8
{
9
+ /** @var Builder */
10
public $query;
11
12
// ----------------
@@ -16,7 +19,7 @@ trait Query
16
19
* Examples:
17
20
* $this->crud->addClause('active');
18
21
* $this->crud->addClause('type', 'car');
- * $this->crud->addClause('where', 'name', '==', 'car');
22
+ * $this->crud->addClause('where', 'name', '=', 'car');
23
* $this->crud->addClause('whereName', 'car');
24
* $this->crud->addClause('whereHas', 'posts', function($query) {
25
* $query->activePosts();
0 commit comments