---
title: "Comment by David Carr on \"Chaining methods from a Laravel  helper class\" | Hashnode"
description: "Chaining methods is really handy, for instance when sending email using Microsoft 365 I set the package so I can do this: MsGraph::emails() -&gt;to($email) -&gt"
url: "https://hashnode.com/posts/chaining-methods-from-a-laravel-helper-class/65ac302fcb2e6d91057a6d27/comment/65b280644f7b6aec3a8aa74a"
---

[Discussion](https://hashnode.com/posts/chaining-methods-from-a-laravel-helper-class/65ac302fcb2e6d91057a6d27)

Comment [Chaining methods from a Laravel helper class](https://hashnode.com/posts/chaining-methods-from-a-laravel-helper-class/65ac302fcb2e6d91057a6d27)

[David Carr](https://hashnode.com/@dcblogdev)

[Jan 25, 2024](https://hashnode.com/posts/chaining-methods-from-a-laravel-helper-class/65ac302fcb2e6d91057a6d27/comment/65b280644f7b6aec3a8aa74a)

Chaining methods is really handy, for instance when sending email using Microsoft 365 I set the package so I can do this:

```
MsGraph::emails()
->to($email)
->subject($subject)
->body($body)
->attachments($files)
->send();
```
