master

laravel/framework

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

Factory.php

TLDR

This file defines the Factory interface in the Illuminate\Contracts\Broadcasting namespace. It declares a method connection() that returns an instance of the Broadcaster interface.

Methods

connection

This method takes an optional $name parameter and returns an instance of the Broadcaster interface. The implementation of this method should be able to retrieve a broadcaster implementation based on the provided name or return a default implementation if no name is provided.

Classes

There are no classes defined in this file.

<?php

namespace Illuminate\Contracts\Broadcasting;

interface Factory
{
    /**
     * Get a broadcaster implementation by name.
     *
     * @param  string|null  $name
     * @return \Illuminate\Contracts\Broadcasting\Broadcaster
     */
    public function connection($name = null);
}