It's easy to configurate a Laravel server site with directory protection:
Laravel Web Server Configuration
Laravel smartly detects the current base url so that you don't need to set the base url for subdirectoy:
function baht_text($number, $include_unit = true, $display_zero = true): ?string | |
{ | |
if (!is_numeric($number)) { | |
return null; | |
} | |
$BAHT_TEXT_NUMBERS = ['ศูนย์', 'หนึ่ง', 'สอง', 'สาม', 'สี่', 'ห้า', 'หก', 'เจ็ด', 'แปด', 'เก้า']; | |
$BAHT_TEXT_UNITS = ['', 'สิบ', 'ร้อย', 'พัน', 'หมื่น', 'แสน', 'ล้าน']; | |
$BAHT_TEXT_ONE_IN_TENTH = 'เอ็ด'; | |
$BAHT_TEXT_TWENTY = 'ยี่'; |
# Image | |
FROM php:7.4.15-fpm-alpine3.12 | |
# Set timezone | |
ENV TIMEZONE=Asia/Makassar | |
RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime && echo $TIMEZONE > /etc/timezone | |
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ | |
RUN chmod +x /usr/local/bin/install-php-extensions && sync && install-php-extensions \ |
It's easy to configurate a Laravel server site with directory protection:
Laravel Web Server Configuration
Laravel smartly detects the current base url so that you don't need to set the base url for subdirectoy: