We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbdbe44 commit e214350Copy full SHA for e214350
src/File.php
@@ -28,6 +28,26 @@ public function file()
28
{
29
return $this->belongsTo(Upload::class, 'upload_id');
30
}
31
+
32
+ /**
33
+ * Get Url Directly
34
+ *
35
+ * @return string
36
+ */
37
+ public function getUrlAttribute()
38
+ {
39
+ return $this->file->url;
40
+ }
41
42
43
+ * Get Thumbnail
44
45
46
47
+ public function getThumbnailAttribute()
48
49
+ return $this->file->thumbnail ?? null;
50
51
52
/**
53
* Get the owning model.
0 commit comments