##Installation
First, make sure you are using laravel 5.6Then, you You need to rely on the kuaiapp/db package, which is used to implement the pseudo-PDO interface of Swoole\Coroutine\MySQLcomposer require kuaiapp/db:v0.1 -vvv
composer require laravelfy/framework:v5.6.x-dev -vvv
php laravels start
Reference
kuaiapp/db(https://github.com/Kuaiapp/swoole-pdo-wrapper)laravelfy/framework(https ://github.com/laravelfy/framework)For more Laravel related technical articles, please visit the Laravel Framework Getting Started Tutorial column to learn!
The above is the detailed content of Coroutine database query using Swoole in Laravel 5.6. For more information, please follow other related articles on the PHP Chinese website!