• PHP reference
  • Models
  • Traits

HasPicture

trait Models\Traits\HasPicture

Trait HasPicture

Methods

string getPicture(integer $size = 300)

Returns the user's profile picture URL. The first parameter allows you to set the desired size at which you want to display it, which helps Scholica return the correct resized version.

Note that the returned image might be larger than the size you request!

Parameters

  • integer $size Minimal size of the resulting image, in pixels (defaults to 300 pixels)

Return Value

  • string