master

laravel/framework

Last updated at: 29/12/2023 09:21

Factory.php

TLDR

This file defines the Factory interface in the Illuminate\Contracts\Mail namespace. The interface contains one method.

Methods

mailer($name = null)

This method returns an instance of the Mailer class. It takes an optional $name parameter and returns an instance of the Illuminate\Contracts\Mail\Mailer interface.

Classes

There are no classes in this file.

<?php

namespace Illuminate\Contracts\Mail;

interface Factory
{
    /**
     * Get a mailer instance by name.
     *
     * @param  string|null  $name
     * @return \Illuminate\Contracts\Mail\Mailer
     */
    public function mailer($name = null);
}