Compare commits

..

10 Commits

Author SHA1 Message Date
Ivo Spijkerman
cdbf09e5e4 add Docker setup 2025-08-31 16:30:27 +02:00
Ivo Spijkerman
a64f98a3ca initial commit 2025-08-31 14:07:00 +02:00
Jason Varga
4aeb5602e8 revert (#6662) 2025-08-21 09:54:46 -05:00
Ahmed Alaa
d9d449413d Use application name from configuration (#6655) 2025-08-15 08:59:00 -05:00
Ahmed Alaa
845011248b Making sure all related processed are closed when terminating the currently command (#6654) 2025-08-14 12:39:27 -05:00
Ahmed Alaa
730d9b5e32 Bump Pint version (#6653) 2025-08-13 11:45:00 -05:00
taylorotwell
8d8d3b729a Update CHANGELOG 2025-08-07 17:46:49 +00:00
Luke Spencer
a4d121f5e4 Change composer post-autoload-dump script to Artisan command (#6647)
* Change composer post-autoload-dump script to optimize:clear

* Changing to config:clear and clear-compiled
2025-08-03 09:58:20 -05:00
Robert Boes
902200e7aa Revert "fix" (#6646)
This reverts commit dd473eaddc.
2025-07-28 08:49:50 -06:00
izzy goldman
efc90e285e Fix Critical Security Vulnerability in form-data Dependency (#6645) 2025-07-23 09:16:56 -05:00
17 changed files with 8576 additions and 94 deletions

23
.dockerignore Normal file
View File

@@ -0,0 +1,23 @@
/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
.env
.env.backup
.phpunit.result.cache
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
.idea
.vscode
.vagrant
.git
.gitea
.gitignore
.gitattributes
*.log
docker-compose.yml
Dockerfile
.dockerignore

View File

@@ -1,12 +1,12 @@
APP_NAME=Laravel
APP_NAME=Ponzi
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US
APP_LOCALE=nl
APP_FALLBACK_LOCALE=nl
APP_FAKER_LOCALE=nl_NL
APP_MAINTENANCE_DRIVER=file
# APP_MAINTENANCE_STORE=database

View File

@@ -1,12 +0,0 @@
name: Issues
on:
issues:
types: [labeled]
permissions:
issues: write
jobs:
help-wanted:
uses: laravel/.github/.github/workflows/issues.yml@main

View File

@@ -1,12 +0,0 @@
name: Pull Requests
on:
pull_request_target:
types: [opened]
permissions:
pull-requests: write
jobs:
uneditable:
uses: laravel/.github/.github/workflows/pull-requests.yml@main

View File

@@ -1,47 +0,0 @@
name: Tests
on:
push:
branches:
- master
- '*.x'
pull_request:
schedule:
- cron: '0 0 * * *'
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.2, 8.3, 8.4]
name: PHP ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: none
- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-progress
- name: Copy environment file
run: cp .env.example .env
- name: Generate app key
run: php artisan key:generate
- name: Execute tests
run: php artisan test

View File

@@ -1,13 +0,0 @@
name: Update Changelog
on:
release:
types: [released]
permissions: {}
jobs:
update:
permissions:
contents: write
uses: laravel/.github/.github/workflows/update-changelog.yml@main

View File

@@ -1,6 +1,12 @@
# Release Notes
## [Unreleased](https://github.com/laravel/laravel/compare/v12.2.0...12.x)
## [Unreleased](https://github.com/laravel/laravel/compare/v12.3.0...12.x)
## [v12.3.0](https://github.com/laravel/laravel/compare/v12.2.0...v12.3.0) - 2025-08-03
* Fix Critical Security Vulnerability in form-data Dependency by [@izzygld](https://github.com/izzygld) in https://github.com/laravel/laravel/pull/6645
* Revert "fix" by [@RobertBoes](https://github.com/RobertBoes) in https://github.com/laravel/laravel/pull/6646
* Change composer post-autoload-dump script to Artisan command by [@lmjhs](https://github.com/lmjhs) in https://github.com/laravel/laravel/pull/6647
## [v12.2.0](https://github.com/laravel/laravel/compare/v12.1.0...v12.2.0) - 2025-07-11

49
Dockerfile Normal file
View File

@@ -0,0 +1,49 @@
# Multi-stage build for smaller final image
FROM php:8.4-fpm-alpine AS base
# Install system dependencies
RUN apk add --no-cache \
nginx \
supervisor \
curl \
zip \
unzip \
git \
oniguruma-dev \
libpng-dev \
libjpeg-turbo-dev \
freetype-dev \
libzip-dev \
postgresql-dev \
mysql-client
# Install PHP extensions
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install pdo pdo_mysql pdo_pgsql mbstring exif pcntl bcmath gd zip
# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Set working directory
WORKDIR /var/www/html
# Copy config files
COPY docker/etc/nginx/http.d/default.conf /etc/nginx/http.d/default.conf
COPY docker/etc/supervisor/conf.d/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY docker/start.sh ./start.sh
COPY .env.example ./.env
# Copy application files
COPY . .
# Install dependencies
RUN composer install --no-dev --optimize-autoloader
# Set permissions
RUN chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache \
&& chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache
EXPOSE 80
CMD ["./start.sh"]

View File

@@ -13,7 +13,7 @@
"require-dev": {
"fakerphp/faker": "^1.23",
"laravel/pail": "^1.2.2",
"laravel/pint": "^1.13",
"laravel/pint": "^1.24",
"laravel/sail": "^1.41",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.6",
@@ -49,7 +49,7 @@
],
"dev": [
"Composer\\Config::disableProcessTimeout",
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite"
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite --kill-others"
],
"test": [
"@php artisan config:clear --ansi",

8391
composer.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -129,7 +129,7 @@ return [
'cookie' => env(
'SESSION_COOKIE',
Str::snake((string) env('APP_NAME', 'laravel')).'_session'
Str::slug(env('APP_NAME', 'laravel')).'-session'
),
/*

36
docker-compose.yml Normal file
View File

@@ -0,0 +1,36 @@
services:
server:
build: .
container_name: ponzi-app
ports:
- "1213:80"
environment:
- APP_KEY=base64:i2khvsOjLkIe1IwUOB6KACq4xoT2RnXvv5XQbDsVws4= # For dev only, is not used anywhere else
- DB_CONNECTION=mariadb
- DB_HOST=ponzi-db
- DB_DATABASE=ponzi
- DB_USERNAME=root
- DB_PASSWORD=someroot
depends_on:
- db
restart: unless-stopped
db:
image: mariadb:10
container_name: ponzi-db
command: '--default-authentication-plugin=mysql_native_password'
volumes:
- db_data:/var/lib/mysql
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=someroot
- MYSQL_DATABASE=ponzi
- MYSQL_USER=ponzi
- MYSQL_PASSWORD=ponzipass
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-psomeroot"]
interval: 10s
timeout: 5s
retries: 5
volumes:
db_data: {}

View File

@@ -0,0 +1,21 @@
server {
listen 80;
server_name localhost;
root /var/www/html/public;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.(?!well-known).* {
deny all;
}
}

View File

@@ -0,0 +1,25 @@
[supervisord]
nodaemon=true
user=root
logfile=/var/log/supervisor/supervisord.log
pidfile=/var/run/supervisord.pid
[program:php-fpm]
command=/usr/local/sbin/php-fpm -F
autostart=true
autorestart=true
priority=5
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:nginx]
command=nginx -g "daemon off;"
autostart=true
autorestart=true
priority=10
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0

15
docker/start.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
set -ex
mkdir -p /var/log/supervisor
# Run migrations
php artisan migrate --force
# Clear and cache config
php artisan config:cache
php artisan route:cache
php artisan view:cache
# Start supervisor
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf

View File

@@ -8,7 +8,7 @@
},
"devDependencies": {
"@tailwindcss/vite": "^4.0.0",
"axios": "^1.8.2",
"axios": "^1.11.0",
"concurrently": "^9.0.1",
"laravel-vite-plugin": "^2.0.0",
"tailwindcss": "^4.0.0",

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net">