Lumen framework promise
use GuzzleHttp\Promise\Promise;
$promise = new Promise();
$promise->then(
// $onFulfilled
function ($value) {
echo 'The promise was fulfilled.';
},
// $onRejected
function ($reason) {
echo 'The promise was rejected.';
}
);
Also in PHP:
- carbon now format
- SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; m ax key length is 767 bytes (SQL: alter table `users` add unique `users_email_unique`(`e mail`))
- disable laravel cache
- PHP if exists string
- base64 decode php function
- How to show php text
- file_get_contents() [function.file-get-contents]: SSL operation failed with code 1. OpenSSL Error messages
- cache laravel
- Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead.
- do something after redirect php
- clear server cache laravel
- blocklab post loop
- Calculate the number of minus between two dates in php
- convert date in php
- artisan migrate certain file
- configure laravel on windows
- catch an error php
- check if there is string in string php
- error reporting panvil.works
- 3 elements in do while loop php
- How do I clear laravel cache online?
- check key exist in array php
- cache management laravel
- Laravel store multiple files