private function moveDirectory($from, $location, $newName)
    {
        $newName = Str::slug($newName);

        return tap("{$location}/{$newName}", function ($to) use ($from) {
            $this->media->move($from, $to);
        });
    }
private function moveDirectory($from, $location, $newName)
    {
        $newName = Str::slug($newName);

        return tap("{$location}/{$newName}", function ($to) use ($from) {
            $this->media->move($from, $to);
        });
    }
private function moveDirectory ( $ from , $ location , $ newName ) { $ newName = Str :: slug ( $ newName ) ; return tap ( "{$location}/{$newName}" , function ( $ to ) use ( $ from ) { $ this -> media -> move ( $ from , $ to ) ; } ) ; }
Move directory.

@param  string  $from
@param  string  $location
@param  string  $newName

@return string
Move directory .