Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Make a string lowercase
<?php strtolower(string $string): string
<?php #[Computed]
public function fooBar()
{
return strtolower($this->upperCasedFoo);
}
public function render()
<?php #[Computed]
public function foo_bar_snake_case_in_component_class()
{
return strtolower($this->upperCasedFoo);
}
#[Computed]
<?php #[Computed]
public function fooBarCamelCaseInComponentClass()
{
return strtolower($this->upperCasedFoo);
}
public function render()
<?php public function getFooBarProperty()
{
return strtolower($this->upperCasedFoo);
}
public function render()
<?php public function getFooBarProperty()
{
return strtolower($this->upperCasedFoo);
}
public function render()
<?php public function getFooBarProperty()
{
return strtolower($this->upperCasedFoo);
}
public function render()
<?php public function isReservedClassName($name)
{
return array_search(strtolower($name), $this->getReservedName()) !== false;
}
protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output)
<?php {
$diskBeforeTestFake = config('livewire.temporary_file_upload.disk') ?: config('filesystems.default');
return config('filesystems.disks.'.strtolower($diskBeforeTestFake).'.driver') === 's3';
}
public static function isUsingGCS()
<?php {
$diskBeforeTestFake = config('livewire.temporary_file_upload.disk') ?: config('filesystems.default');
return config('filesystems.disks.'.strtolower($diskBeforeTestFake).'.driver') === 'gcs';
}
public static function normalizeRelativePath($path)
<?php public function dehydrate()
{
$this->dateWithFormat = $this->dateWithFormat->format('y-m-d');
$this->allCaps = strtolower($this->allCaps);
$this->stringable = $this->stringable->__toString();
}
<?php protected function isReservedName($name)
{
return in_array(
strtolower($name),
collect($this->reservedNames)
->transform(fn ($name) => strtolower($name))
->all()
<?php return in_array(
strtolower($name),
collect($this->reservedNames)
->transform(fn ($name) => strtolower($name))
->all()
);
}
<?php protected function getArguments()
{
return [
['name', InputArgument::REQUIRED, 'The name of the '.strtolower($this->type)],
];
}
<?php {
return [
'name' => [
'What should the '.strtolower($this->type).' be named?',
match ($this->type) {
'Cast' => 'E.g. Json',
'Channel' => 'E.g. OrderChannel',
<?php return $this->callNamedScope($method, $parameters);
}
if (in_array(strtolower($method), $this->passthru)) {
return $this->toBase()->{$method}(...$parameters);
}