Skip to content

Commit

Permalink
formatting - dont store
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 18, 2021
1 parent 3ec57b2 commit c21fc12
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Illuminate/Filesystem/FilesystemManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,15 @@ public function cloud()
/**
* Build an on-demand disk.
*
* @param string|array $root
* @param string|array $config
* @return \Illuminate\Contracts\Filesystem\Filesystem
*/
public function build($root)
public function build($config)
{
$config = is_array($root) ? $root : ['driver' => 'local', 'root' => $root];

return $this->disks['ondemand'] = $this->resolve('ondemand', $config);
return $this->resolve('ondemand', is_array($config) ? $config : [
'driver' => 'local',
'root' => $config
]);
}

/**
Expand Down

0 comments on commit c21fc12

Please sign in to comment.