Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.

Commit 3f0a387

Browse files
committed
fix phpdoc and document laravel facade
1 parent 7b1c556 commit 3f0a387

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,17 @@ echo $query;
7070
// 'custom = "1"'
7171
```
7272

73+
laravel facade support out of the box:
74+
75+
```php
76+
use JqlBuilder\Facades\Jql;
77+
78+
$query = Jql::where('summary', '=', 'value')->getQuery();
79+
80+
echo $query;
81+
// 'summary = "value"'
82+
```
83+
7384
## Testing
7485

7586
```bash

src/Facades/Jql.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
use Illuminate\Support\Facades\Facade;
88

99
/**
10-
* @method static self where(\Closure|string $column, mixed $operator = \JqlBuilder\Operator::EQUALS, mixed $value = null, string $boolean = \JqlBuilder\Keyword::AND)
11-
* @method static self orWhere(\Closure|string $column, mixed $operator = \JqlBuilder\Operator::EQUALS, mixed $value = null)
12-
* @method static self when(mixed $value, callable $callback)
13-
* @method static self whenNot(mixed $value, callable $callback)
14-
* @method static self orderBy(string $column, string $direction)
15-
* @method static self rawQuery(string $query)
10+
* @method static \JqlBuilder\Jql where(\Closure|string $column, mixed $operator = \JqlBuilder\Operator::EQUALS, mixed $value = null, string $boolean = \JqlBuilder\Keyword::AND)
11+
* @method static \JqlBuilder\Jql orWhere(\Closure|string $column, mixed $operator = \JqlBuilder\Operator::EQUALS, mixed $value = null)
12+
* @method static \JqlBuilder\Jql when(mixed $value, callable $callback)
13+
* @method static \JqlBuilder\Jql whenNot(mixed $value, callable $callback)
14+
* @method static \JqlBuilder\Jql orderBy(string $column, string $direction)
15+
* @method static \JqlBuilder\Jql rawQuery(string $query)
1616
* @method static string getQuery()
1717
* @see \JqlBuilder\Jql
1818
*/

0 commit comments

Comments
 (0)