master

laravel/framework

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

Factory.php

TLDR

This file defines an interface called Factory in the Illuminate\Contracts\Filesystem namespace. The interface has a single method called disk which returns an instance of the Filesystem interface.

Methods

disk

This method is used to get a filesystem implementation. It accepts an optional parameter called $name and returns an instance of the Filesystem interface.

Classes

There are no classes defined in this file.

<?php

namespace Illuminate\Contracts\Filesystem;

interface Factory
{
    /**
     * Get a filesystem implementation.
     *
     * @param  string|null  $name
     * @return \Illuminate\Contracts\Filesystem\Filesystem
     */
    public function disk($name = null);
}