Laravel 8 exactly {#collection-method}
exactly
方法用于判断指定字符串是否与另一字符串完全匹配:
use Illuminate\Support\Str;
$result = Str::of('Laravel')->exactly('Laravel');
// true
exactly
方法用于判断指定字符串是否与另一字符串完全匹配:
use Illuminate\Support\Str;
$result = Str::of('Laravel')->exactly('Laravel');
// true