Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Make a string lowercase
strtolower(string $string): string
public function isReservedClassName($name)
{
return array_search(strtolower($name), $this->getReservedName()) !== false;
}
private function getReservedName()
{
$diskBeforeTestFake = config('livewire.temporary_file_upload.disk') ?: config('filesystems.default');
return config('filesystems.disks.'.strtolower($diskBeforeTestFake).'.driver') === 's3';
}
public static function isUsingGCS()
$diskBeforeTestFake = config('livewire.temporary_file_upload.disk') ?: config('filesystems.default');
return config('filesystems.disks.'.strtolower($diskBeforeTestFake).'.driver') === 's3';
}
public static function isUsingGCS()
{
$diskBeforeTestFake = config('livewire.temporary_file_upload.disk') ?: config('filesystems.default');
return config('filesystems.disks.'.strtolower($diskBeforeTestFake).'.driver') === 'gcs';
}
public static function normalizeRelativePath($path)
$diskBeforeTestFake = config('livewire.temporary_file_upload.disk') ?: config('filesystems.default');
return config('filesystems.disks.'.strtolower($diskBeforeTestFake).'.driver') === 'gcs';
}
public static function normalizeRelativePath($path)
public function getFooBarProperty()
{
return strtolower($this->upperCasedFoo);
}
public function render()
{
return strtolower($this->upperCasedFoo);
}
public function render()
public function getFooBarProperty()
{
return strtolower($this->upperCasedFoo);
}
public function render()
{
return strtolower($this->upperCasedFoo);
}
public function render()
public function getFooBarProperty()
{
return strtolower($this->upperCasedFoo);
}
public function render()
{
return strtolower($this->upperCasedFoo);
}
public function render()
public function dehydrate()
{
$this->dateWithFormat = $this->dateWithFormat->format('y-m-d');
$this->allCaps = strtolower($this->allCaps);
$this->stringable = $this->stringable->__toString();
}
{
$this->dateWithFormat = $this->dateWithFormat->format('y-m-d');
$this->allCaps = strtolower($this->allCaps);
$this->stringable = $this->stringable->__toString();
}
protected function isReservedName($name)
{
$name = strtolower($name);
return in_array($name, $this->reservedNames);
}
{
$name = strtolower($name);
return in_array($name, $this->reservedNames);
}
return 'decimal';
}
return trim(strtolower($this->getCasts()[$key]));
}
}
return trim(strtolower($this->getCasts()[$key]));
}
sort($segments);
return strtolower(implode('_', $segments));
}
return strtolower(implode('_', $segments));
}
}
foreach ($columns as $column => $aggregate) {
if (! in_array(strtolower($aggregate), ['min', 'max'])) {
throw new InvalidArgumentException("Invalid aggregate [{$aggregate}] used within ofMany relation. Available aggregates: MIN, MAX");
}
foreach ($columns as $column => $aggregate) {
if (! in_array(strtolower($aggregate), ['min', 'max'])) {
throw new InvalidArgumentException("Invalid aggregate [{$aggregate}] used within ofMany relation. Available aggregates: MIN, MAX");
}
protected function getTypeSwapValue($type, $value)
{
return match (strtolower($type)) {
'int', 'integer' => (int) $value,
'real', 'float', 'double' => (float) $value,
'string' => (string) $value,
{
return match (strtolower($type)) {
'int', 'integer' => (int) $value,
'real', 'float', 'double' => (float) $value,
'string' => (string) $value,
protected function invalidOperator($operator)
{
return ! is_string($operator) || (! in_array(strtolower($operator), $this->operators, true) &&
! in_array(strtolower($operator), $this->grammar->getOperators(), true));
}
{
return ! is_string($operator) || (! in_array(strtolower($operator), $this->operators, true) &&
! in_array(strtolower($operator), $this->grammar->getOperators(), true));
}
protected function invalidOperator($operator)
{
return ! is_string($operator) || (! in_array(strtolower($operator), $this->operators, true) &&
! in_array(strtolower($operator), $this->grammar->getOperators(), true));
}
{
return ! is_string($operator) || (! in_array(strtolower($operator), $this->operators, true) &&
! in_array(strtolower($operator), $this->grammar->getOperators(), true));
}
protected function isBitwiseOperator($operator)
{
return in_array(strtolower($operator), $this->bitwiseOperators, true) ||
in_array(strtolower($operator), $this->grammar->getBitwiseOperators(), true);
}
{
return in_array(strtolower($operator), $this->bitwiseOperators, true) ||
in_array(strtolower($operator), $this->grammar->getBitwiseOperators(), true);
}