tisuchi's avatar
Level 70

Laravel ImgurLaravel package issue

I use https://github.com/OzanKurt/ImgurLaravel package to upload image in Imgur. Its uploading fine.

I dump in my controller like so-

$imageModel = $this->imgur->upload(
            $request->file('image')
        );

        dd($imageModel);

It returns the object like follows-

Image {#250 ▼
  -id: "u9krQnq"
  -title: null
  -description: null
  -datetime: 1474989221
  -type: null
  -animated: false
  -width: 660
  -height: 330
  -size: 28974
  -views: 0
  -bandwidth: 0
  -deletehash: "bpooLCH1q8W6mKn"
  -section: null
  -link: "http://i.imgur.com/u9krQnq.jpg"
}

Now, how can I able to get link from that object?

1 like
3 replies

Please or to participate in this conversation.