best way to call php laravel controller method in async manner

  async-await, asynchronous, eloquent, laravel, php

What are best way to call laravel controller actions in async manner as its very easy with .net using async await keywords.

here is .net example

public async Task<ViewResult> Index() { 
     return View(await GetThingsAsync());
}

does it doable in laravel same way ?

does PHP laravel provide any helper or plugin that can help to call controller actions in async manner and all DB queries in async manner / does eloquent provide support for asynchronous queries

Source: Ask PHP

LEAVE A COMMENT