This article mainly introduces about the use of swoole in Laravel 5.6 of the Process database query, has a certain reference value, now share to everyone, the need for friends can refer to
Installation
First, make sure you're using laravel 5.6.
Then you need to rely on kuaiapp/db this package to implement Swoolecoroutinemysql's pseudo-PDO interface
Composer require KUAIAPP/DB:V0.1-VVV
will be laravel/framework:"v5.6" modified intolaravelfy/framework:v5.6.x-dev
Composer require LARAVELFY/FRAMEWORK:V5.6.X-DEV-VVV
Start in your laravel-swoole command and test the interface with the database query.
such as Laravel-s
PHP laravels Start
At this point, your Laravel project's MYSQL process has been successfully transformed.
The above is the whole content of this article, I hope that everyone's learning has helped, more relevant content please pay attention to topic.alibabacloud.com!