Closed pascalbaljet closed 9 months ago
This PR adds support for passing an array of classes when rendering a Media Model:
Media
Media::first()->img('thumb', ['class' => [ 'rounded', 'border' => true, 'border-black' => false, ]]),
Under the hood, it uses Laravel's Arr::toCssClasses helper method.
Arr::toCssClasses
Very nice! Could you also put an example of this in the docs?
@freekmurze done :)
Very nice, thanks!
This PR adds support for passing an array of classes when rendering a
Media
Model:Under the hood, it uses Laravel's
Arr::toCssClasses
helper method.