Skip to content

Commit 3a9c217

Browse files
committed
IHF: call_in_background doc added.
1 parent d89f552 commit 3a9c217

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Provides Laravel-specific and pure PHP helper functions.
2020
2121
## Available functions
2222
23+
- [Artisan](#artisan)
24+
- [call_in_background](#call_in_background)
25+
2326
- [Database](#database)
2427
- [db_is_mysql](#db_is_mysql)
2528
- [db_mysql_now](#db_mysql_now)
@@ -43,6 +46,17 @@ Provides Laravel-specific and pure PHP helper functions.
4346
- [str_lower](#str_lower)
4447
- [str_upper](#str_upper)
4548
49+
## Artisan
50+
51+
#### `call_in_background()`
52+
53+
Calls artisan console command in background, with optional `before` and `after` sub-commands:
54+
```php
55+
call_in_background("foo:bar baz", 'sleep 0.3');
56+
57+
// "sleep 0.3 && php artisan foo:bar baz" would be called in background
58+
```
59+
4660
## Database
4761
4862
#### `db_is_mysql()`

0 commit comments

Comments
 (0)