This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
duration_max, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Core\Products; | |
use App\DTO\Product\ProductGetDTO; | |
use App\Models\Product; | |
use App\Models\ProductDisplayData; | |
use Elastic\Elasticsearch\Client; | |
use Elastic\Elasticsearch\Response\Elasticsearch; | |
use Http\Promise\Promise; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[supervisord] | |
nodaemon=false | |
[program:laravel-worker] | |
process_name=%(program_name)s_%(process_num)02d | |
command=php %(ENV_APP_ROOT)s/artisan horizon | |
stdout_logfile=%(ENV_APP_ROOT)s/storage/logs/worker.log | |
autostart=true | |
autorestart=true | |
numprocs=%(ENV_NUM_PROCS)s | |
redirect_stderr=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.4-fpm | |
MAINTAINER Mehrubon Khusaynov <[email protected]> | |
ENV APP_ROOT=/var/www/html QUEUE_DRIVER=redis NUM_PROCS=4 | |
# Install dependencies | |
RUN apt-get update && apt-get install -y \ | |
build-essential \ | |
libpng-dev \ | |
libjpeg62-turbo-dev \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Traits; | |
use Illuminate\Contracts\Validation\Validator; | |
use Illuminate\Http\JsonResponse; | |
use Illuminate\Http\Request; | |
use Illuminate\Http\Resources\Json\JsonResource; | |
use Illuminate\Http\Response; | |
use Illuminate\Pagination\LengthAwarePaginator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function respondPagination(LengthAwarePaginator $awarePaginator, JsonResource $resourceForMap = null): JsonResponse | |
{ | |
if (!is_null($resourceForMap)) { | |
$items = $resourceForMap->collection($awarePaginator->items()); | |
} else { | |
$items = $awarePaginator->items(); | |
} | |
return $this->respond([ | |
'pagination' => $this->getPagination($awarePaginator), | |
'items' => $items, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Resources\Client\WidgetProduct; | |
use App\Http\Resources\Client\City\CityResource; | |
use App\Http\Resources\Client\WidgetLocation\WidgetLocationResource; | |
use App\Models\WidgetProduct; | |
use App\Services\Products\ProductService; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Modules\Integration; | |
use GuzzleHttp\Client; | |
use GuzzleHttp\Exception\BadResponseException; | |
use GuzzleHttp\Exception\ClientException; | |
use GuzzleHttp\Exception\RequestException; | |
use GuzzleHttp\Exception\ServerException; | |
use GuzzleHttp\Psr7\Response; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.3-fpm-alpine | |
MAINTAINER Mehrubon Khusaynov <[email protected]> | |
ENV TIMEZONE Asia/Dushanbe | |
#RUN apk add supervisor | |
RUN apk upgrade --update && apk add \ | |
autoconf tzdata file g++ gcc binutils isl libatomic libc-dev musl-dev make re2c libstdc++ libzip-dev libgcc libcurl curl-dev mpc1 mpfr4 gmp libgomp coreutils freetype-dev libjpeg-turbo-dev libltdl libmcrypt-dev libpng-dev openssl-dev libxml2-dev expat-dev postgresql-dev \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.3-fpm-alpine | |
MAINTAINER Mehrubon Khusaynov <[email protected]> | |
ENV TIMEZONE Asia/Dushanbe | |
#RUN apk add supervisor | |
RUN apk upgrade --update && apk add \ | |
autoconf tzdata file g++ gcc binutils isl libatomic libc-dev musl-dev make re2c libstdc++ libzip-dev libgcc libcurl curl-dev mpc1 mpfr4 gmp libgomp coreutils freetype-dev libjpeg-turbo-dev libltdl libmcrypt-dev libpng-dev openssl-dev libxml2-dev expat-dev postgresql-dev \ |
NewerOlder