Attachable.php
TLDR
The Attachable.php
file contains a PHP interface called Attachable
in the Illuminate\Contracts\Mail
namespace. This interface represents an entity that can be attached to an email.
Methods
toMailAttachment
This method is required to be implemented by classes that implement the Attachable
interface. It returns an instance of the \Illuminate\Mail\Attachment
class, representing an attachment for an email.
Classes
None
<?php
namespace Illuminate\Contracts\Mail;
interface Attachable
{
/**
* Get an attachment instance for this entity.
*
* @return \Illuminate\Mail\Attachment
*/
public function toMailAttachment();
}