Level 32
$imageModel->link
3 likes
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?
In order to access that link- you can have use getter method-
$imageModel->getLink()
like this.
Here is the solution that I found... https://github.com/OzanKurt/ImgurLaravel/issues/2
Please or to participate in this conversation.