1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Added custom user avatars

This commit is contained in:
Dan Brown
2015-12-09 22:30:55 +00:00
parent db3acabc66
commit 8f7c642f32
16 changed files with 230 additions and 68 deletions

View File

@ -3,9 +3,10 @@
namespace BookStack;
use Illuminate\Database\Eloquent\Model;
use Images;
class Image
class Image extends Model
{
use Ownable;
@ -16,9 +17,10 @@ class Image
* @param int $width
* @param int $height
* @param bool|false $hardCrop
* @return string
*/
public function getThumb($width, $height, $hardCrop = false)
{
Images::getThumbnail($this, $width, $height, $hardCrop);
return Images::getThumbnail($this, $width, $height, $hardCrop);
}
}