Skip to content

Commit 4e87117

Browse files
committed
IHF: laravel_db_mysql_now docs added.
1 parent c6b56ce commit 4e87117

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,12 @@ if (laravel_db_is_mysql()) {
8383
// mysql-specific code here
8484
}
8585
```
86+
87+
#### `laravel_db_mysql_now`
88+
89+
Returns current database datetime string, using Laravel `mysql` connection:
90+
```php
91+
$now = laravel_db_mysql_now();
92+
93+
// 2016-06-23 15:23:16
94+
```

0 commit comments

Comments
 (0)