6 use Illuminate\Database\Eloquent\Model;
9 class Image extends Model
13 protected $fillable = ['name'];
16 * Get a thumbnail for this image.
19 * @param bool|false $hardCrop
22 public function getThumb($width, $height, $hardCrop = false)
24 return Images::getThumbnail($this, $width, $height, $hardCrop);