| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | protected function resolveAttribute($resource, $attribute) |
||
| 15 | { |
||
| 16 | $callback = function () use ($resource, $attribute) { |
||
| 17 | return \Avatar::create($resource[$attribute]) |
||
| 18 | ->setDimension($this->size) |
||
| 19 | ->setFontSize($this->fontSize) |
||
| 20 | ->toBase64(); |
||
| 21 | }; |
||
| 22 | |||
| 23 | $this->preview($callback)->thumbnail($callback); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |