response()->script( "window.open('{$url}', '_blank')" ); } else { return $this ->response() ->error('媒体名称不能为空'); } } /** * Build a form here. */ public function form() { // 设置隐藏表单,传递用户id $this->select('media_name') ->options(config('dictionary.media_list')) ->required(); } /** * The data of the form. * * @return array */ public function default() { return []; } }