- public function getFilePath()
- {
- return storage_path() . $this->url;
- }
-
- public function createdBy()
- {
- return $this->belongsTo('Oxbow\User', 'created_by');
- }
-
- public function updatedBy()
+ /**
+ * Get a thumbnail for this image.
+ * @param int $width
+ * @param int $height
+ * @param bool|false $keepRatio
+ * @return string
+ */
+ public function getThumb($width, $height, $keepRatio = false)