Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
parsgit committed May 13, 2023
1 parent 97dc11a commit 2e75158
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ You can use the more enjoyable Syntax, which in addition to shortening the code,

### Methods: is / true / false

To create queries based on boolean, you can use 'true' and 'false' or 'is' methods
To create queries based on boolean, you can use `true` and `false` or `is` methods

```PHP

Expand All @@ -762,7 +762,31 @@ DB::table('users')
->is('active')
->and('credit', '>', 0)
->or('vip', true)

->get();
```

```PHP
DB::table('users')
->in('id', [1,5,10])
->get();
```

Other methods are also available, such as the following methods:

`not(..)` / `orNot(..)`
<br>
`in(..)` / `notIn(..)` / `orIn(..)` / `orNotIn(..)`
<br>
`like(..)` / `orLike(..)`
<br>
`null(..)` / `orNull(..)` / `notNull(..)` / `orNotNull(..)`
<br>
`date(..)` / `orDate(..)`
<br>
`year(..)` / `orYear(..)`
<br>
`month(..)` / `orMonth(..)`
<br>
`day(..)` / `orDay(..)`
<br>
`time(..)` / `orTime(..)`

0 comments on commit 2e75158

Please sign in to comment.