app/Http/Controllers/EditMediaController.php
public function createMediaObject(Tree $tree): ResponseInterface
    {
        return response(view('modals/create-media-object', [
            'max_upload_size' => $this->maxUploadFilesize(),
            'media_types'     => $this->mediaTypes(),
            'unused_files'    => $this->unusedFiles($tree),
        ]));
    }
public function createMediaObject(Tree $tree): ResponseInterface
    {
        return response(view('modals/create-media-object', [
            'max_upload_size' => $this->maxUploadFilesize(),
            'media_types'     => $this->mediaTypes(),
            'unused_files'    => $this->unusedFiles($tree),
        ]));
    }
public function createMediaObject ( Tree $ tree ) : ResponseInterface { return response ( view ( 'modals/create-media-object' , [ 'max_upload_size' => $ this -> maxUploadFilesize ( ) , 'media_types' => $ this -> mediaTypes ( ) , 'unused_files' => $ this -> unusedFiles ( $ tree ) , ] ) ) ; }
Show a form to create a new media object.

@param Tree $tree

@return ResponseInterface
Show a form to create a new media object .