laravel / 10 / api / 10.x / illuminate / console / view / components / mutators / ensurepunctuation.html

EnsurePunctuation

class EnsurePunctuation (View source)

Methods

string __invoke(string $string)

Ensures the given string ends with punctuation.

Details

string __invoke(string $string)

Ensures the given string ends with punctuation.

Parameters

string $string

Return Value

string

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Console/View/Components/Mutators/EnsurePunctuation.html