Avatar

A very simple Field to render a image and title under a picture.

For example, you can use it like this.

sinlge avatar

Even, You may use it in the table

avatar in table

Example code


use agoalofalife\Orchid\Fields\Range; // value - url to source // heightByPercent - size avatar by percents // nameAvatar - text under a avatar like a "title" // fontSizeByPx - size a title like font-size and measured by px // left or right or center - position avatar on layout Avatar::make('test') ->value("https://avatars.githubusercontent.com/u/15719824?v=4") ->heightByPercent(6) ->nameAvatar('Ilia Chubarov') ->fontSizeByPx(15) ->left(),