for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Helldar\LaravelLangPublisher\Concerns;
use Helldar\Verbose\Facades\Log;
use Helldar\Verbose\Services\Logger as Service;
trait Logger
{
protected function setLogger(): void
Service::io($this->output);
}
protected function log(...$message): void
$value = $this->logProcess($message);
Log::write($value);
protected function logProcess(array $values): string
foreach ($values as &$value) {
switch (gettype($value)) {
case 'boolean':
case 'bool':
$value = $value ? '"true"' : '"false"';
break;
case 'integer':
case 'double':
$value = '"' . $value . '"';
case 'array':
$value = implode(', ', $value);
case 'NULL':
$value = '"null"';
return implode(' ', $values);