Skip to content

Commit ad6f2e3

Browse files
authored
Merge pull request #4596 from ajaxray/main
Fixed a typo and added the type of $query
2 parents e08e807 + 80cab9a commit ad6f2e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/Library/CrudPanel/Traits/Query.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
namespace Backpack\CRUD\app\Library\CrudPanel\Traits;
44

5+
use Illuminate\Database\Query\Builder;
6+
57
trait Query
68
{
9+
/** @var Builder */
710
public $query;
811

912
// ----------------
@@ -16,7 +19,7 @@ trait Query
1619
* Examples:
1720
* $this->crud->addClause('active');
1821
* $this->crud->addClause('type', 'car');
19-
* $this->crud->addClause('where', 'name', '==', 'car');
22+
* $this->crud->addClause('where', 'name', '=', 'car');
2023
* $this->crud->addClause('whereName', 'car');
2124
* $this->crud->addClause('whereHas', 'posts', function($query) {
2225
* $query->activePosts();

0 commit comments

Comments
 (0)