sed pattern file | psql db -c "COPY table FROM STDIN DELIMITER '|' CSV HEADER"
Log::channel('user')->info($msg, $result);
Log::info($msg, $result);
config(['logging.channels.single.path' => '/путь до storage/logs/user-log-'.(auth()->user()->id??'guest').'.log']);
public function handle($request, Closure $next)
{
$response = $next($request);
if ($this->isAnHtmlResponse($response)) {
$output = $response->getContent();
$response->setContent($this->minify($output));
}
return $response;
}
https://www.percona.com/blog/illustrating-primary-...