Home  >  Article  >  Backend Development  >  Coroutine database query using Swoole in Laravel 5.6

Coroutine database query using Swoole in Laravel 5.6

不言
不言Original
2018-07-06 17:18:072108browse

This article mainly introduces the coroutine database query using Swoole in Laravel 5.6. It has certain reference value. Now I share it with you. Friends in need can refer to it

Installation

First of all, confirm that you are using laravel 5.6

Then, you need to rely on the kuaiapp/db package, which is used to implement the pseudo PDO interface of swoolecoroutinemysql

composer require kuaiapp/db:v0.1 -vvv

Will laravel /framework:"v5.6" Change to laravelfy/framework:v5.6.x-dev

composer require laravelfy/framework:v5.6.x-dev -vvv

Start in your laravel-swoole command and test it There is an interface for database query.
Such as laravel-s

php laravels start

At this point, the MYSQL coroutine transformation of your laravel project has been successful.

The above is the entire content of this article. I hope it will be helpful to everyone's study. For more related content, please pay attention to the PHP Chinese website!

Related recommendations:

Analysis of Laravel’s Facade Appearance System

Solution to the problem that the table is empty when executing the table migration command in Laravel5.5 plan

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn