![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mets.corals.io/wp-content/metras.v32.1/vendor/illuminate/support/Facades/ |
<?php namespace Illuminate\Support\Facades; use Illuminate\Filesystem\Filesystem; /** * @method static \Illuminate\Contracts\Filesystem\Filesystem disk(string $name = null) * * @see \Illuminate\Filesystem\FilesystemManager */ class Storage extends Facade { /** * Replace the given disk with a local testing disk. * * @param string|null $disk * * @return \Illuminate\Filesystem\Filesystem */ public static function fake($disk = null) { $disk = $disk ?: self::$app['config']->get('filesystems.default'); (new Filesystem)->cleanDirectory( $root = storage_path('framework/testing/disks/'.$disk) ); static::set($disk, $fake = self::createLocalDriver(['root' => $root])); return $fake; } /** * Replace the given disk with a persistent local testing disk. * * @param string|null $disk * @return \Illuminate\Filesystem\Filesystem */ public static function persistentFake($disk = null) { $disk = $disk ?: self::$app['config']->get('filesystems.default'); static::set($disk, $fake = self::createLocalDriver([ 'root' => storage_path('framework/testing/disks/'.$disk), ])); return $fake; } /** * Get the registered name of the component. * * @return string */ protected static function getFacadeAccessor() { return 'filesystem'; } }