阅读(337) (3)

Laravel 8 exactly {#collection-method}

2021-07-03 16:54:28 更新

exactly 方法用于判断指定字符串是否与另一字符串完全匹配:

use Illuminate\Support\Str;

$result = Str::of('Laravel')->exactly('Laravel');

// true