# Add Ondrej PHP repository
RUN apt update \
- && apt install -y --no-install-recommends ca-certificates gnupg bash curl \
+ && apt install -y --no-install-recommends ca-certificates gnupg bash curl wget \
&& echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu jammy main" > /etc/apt/sources.list.d/ondrej-php.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
+RUN sh -c 'echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list'
+RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
+
RUN apt update
RUN apt -y --no-install-recommends install \
php8.3-fpm \
less nano wget nodejs
-RUN apt -y --no-install-recommends install nodejs sudo openssh-server rsyslog cron mariadb-client zip unzip imagemagick
+RUN apt -y --no-install-recommends install google-chrome-stable nodejs sudo openssh-server rsyslog cron mariadb-client zip unzip imagemagick
RUN apt -y --no-install-recommends install locales
RUN sed -i '/fr_FR.UTF-8/s/^# //g' /etc/locale.gen && \
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
# IF you need some npm globally installed packages
-RUN npm install --unsafe-perm --global yarn
+RUN npm install --unsafe-perm --global yarn puppeteer
CMD ["php", "-a"]
protected function login()
{
- return self::_login();
+ return self::_login();
}
- public static function _login(){
+ public static function _login()
+ {
$request = request();
$credentials = $request->validate([
'email' => ['required', 'email'],
$user->notify(new ResahNotification(ResahNotification::QUOTE_REQUEST_SENT, $order));
User::withoutGlobalScopes()->find(3)->notify(new ResahNotification(ResahNotification::QUOTE_REQUEST, $order));
- return response()->json(['success' => 'ok', 'order' => $order->id, 'total' => $total])->setStatusCode(200);
+ return response()->json(['success' => 'ok', 'order' => $order->id, 'subTotal' => $total, 'taxes' => $cumul_tva, 'total' => $total + $cumul_tva])->setStatusCode(200);
}
], [
'*.required' => 'Ce champ est obligatoire',
'password.min' => 'Le mot de passe trop court (8 caractères minimum)',
- 'password.confirmed' => 'Les mots de passes ne correspondent pas',
+ 'password.confirmed' => 'Les mots de passe ne correspondent pas',
]);