public function getUrl()
{
return Url::root() . '/' . $this->getPath();
}
/** * @param $file * @return array */ public function uploadScreenShot3($file) { $name = Str::random() . '.' . strtolower($file->ext); $image = new Image($file->image); $image->saveAs(PATH_PUBLIC . '/images/' . $name, 100); return array('UploadScreenShot3Result' => $image->getUrl()); }