Skip to content

Commit b693fa5

Browse files
committed
IHF: laravel_db_is_mysql docs added.
1 parent b86d265 commit b693fa5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,14 @@ $decoded = is_json('{"foo":1,"bar":2,"baz":3}', true);
7272
7373
// ['foo' => 1, 'bar' => 2, 'baz' => 3]
7474
```
75+
76+
## Laravel
77+
78+
#### `laravel_db_is_mysql`
79+
80+
Checks if default connection is `mysql` or not:
81+
```php
82+
if (laravel_db_is_mysql()) {
83+
// mysql-specific code here
84+
}
85+
```

0 commit comments

Comments
 (0)