Skip to content

Commit 3841e1f

Browse files
committed
Upgrade Laravel security dependencies and verify application behavior
1 parent c259e6e commit 3841e1f

14 files changed

Lines changed: 2140 additions & 1466 deletions

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Quality checks
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
php: ['8.2', '8.4']
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php }}
23+
extensions: mbstring, pdo_sqlite, sqlite3, intl
24+
coverage: none
25+
tools: composer:v2
26+
- run: cp .env.example .env
27+
- run: composer install --no-interaction --prefer-dist --no-progress
28+
- run: composer validate --strict
29+
- run: composer audit
30+
- run: php vendor/bin/phpunit --fail-on-warning

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Development and checks
2+
3+
Requires PHP 8.2+ and Composer 2. Install the locked PHP dependencies with `composer install`. Copy `.env.example` to `.env` and configure your own development database and services. This update uses patched Laravel 12 and preserves the existing application structure.
4+
5+
Run `php vendor/bin/phpunit` for tests. Tests use an isolated in-memory SQLite database and fake mail transports. CI checks PHP 8.2 and 8.4, locked installs, tests, and dependency audits. Production database migrations and external service deployment must be handled in the deployment environment.
6+
17
# Aquadic E-commerce API Task
28

39
Welcome to my repository for Aquadic task implemented using Laravel version 10.

composer.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,26 @@
22
"name": "laravel/laravel",
33
"type": "project",
44
"description": "The skeleton application for the Laravel framework.",
5-
"keywords": ["laravel", "framework"],
5+
"keywords": [
6+
"laravel",
7+
"framework"
8+
],
69
"license": "MIT",
710
"require": {
8-
"php": "^8.1",
11+
"php": "^8.2",
912
"guzzlehttp/guzzle": "^7.2",
10-
"laravel/framework": "^10.10",
11-
"laravel/sanctum": "^3.3",
13+
"laravel/framework": "^12.61.1",
14+
"laravel/sanctum": "^4.0",
1215
"laravel/tinker": "^2.8"
1316
},
1417
"require-dev": {
1518
"fakerphp/faker": "^1.9.1",
16-
"laravel/breeze": "^1.28",
19+
"laravel/breeze": "^2.0",
1720
"laravel/pint": "^1.0",
1821
"laravel/sail": "^1.18",
1922
"mockery/mockery": "^1.4.4",
20-
"nunomaduro/collision": "^7.0",
21-
"phpunit/phpunit": "^10.1",
23+
"nunomaduro/collision": "^8.1",
24+
"phpunit/phpunit": "^11.0",
2225
"spatie/laravel-ignition": "^2.0"
2326
},
2427
"autoload": {
@@ -60,6 +63,9 @@
6063
"allow-plugins": {
6164
"pestphp/pest-plugin": true,
6265
"php-http/discovery": true
66+
},
67+
"platform": {
68+
"php": "8.2.0"
6369
}
6470
},
6571
"minimum-stability": "stable",

0 commit comments

Comments
 (0)