You are viewing documentation for an outdated version. It is no longer supported!

Fluent Api

In similar fashion to Laravel's Http Clientopen in new window, you can chain methods together and thereby gradually build your request.

$response = $client
        ->select('name', 'person')
        ->where('age', 'gt', 26)
        ->orderBy('age', 'desc')
        ->from('/users')
        ->get();

Throughout this chapter, the various available methods are briefly explored.