class FollowButton extends Component (View source)

Traits

Properties

$followable
$localePrefix

Methods

string|null
streamableClassName()

No description

array
data()

Automatically set the class attribute on the attribute bag.

withAttributes(array $attributes)

Automatically set the class attribute on the attribute bag.

__construct($followable, string $buttonClass = 'btn block')

No description

bool
shouldRender()

No description

render()

No description

Details

string|null streamableClassName()

No description

Return Value

string|null

array data()

Automatically set the class attribute on the attribute bag.

Return Value

array

Streamable withAttributes(array $attributes)

Automatically set the class attribute on the attribute bag.

Parameters

array $attributes

Return Value

Streamable

__construct($followable, string $buttonClass = 'btn block')

No description

Parameters

$followable
string $buttonClass

bool shouldRender()

No description

Return Value

bool

render()

No description