public function cast()
	{
		$image = is_null($this->thumbnail)
			? $this->imagePath()
			: $this->thumbnailPath();


        $imginfo = getimagesize($image);
        header('Content-type: '.$imginfo['mime']);
        readfile($image);
	}
public function cast()
	{
		$image = is_null($this->thumbnail)
			? $this->imagePath()
			: $this->thumbnailPath();


        $imginfo = getimagesize($image);
        header('Content-type: '.$imginfo['mime']);
        readfile($image);
	}
public function cast ( ) { $ image = is_null ( $ this -> thumbnail ) ? $ this -> imagePath ( ) : $ this -> thumbnailPath ( ) ; $ imginfo = getimagesize ( $ image ) ; header ( 'Content-type: ' . $ imginfo [ 'mime' ] ) ; readfile ( $ image ) ; }
Renders the given file.

@return void
Renders the given file .