Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ APP_KEY=
APP_DEBUG=true
APP_URL=http://laravelversions.test

APP_TIMEZONE=UTC
APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US
APP_MAINTENANCE_DRIVER=file
APP_MAINTENANCE_STORE=database
PHP_CLI_SERVER_WORKERS=4

BCRYPT_ROUNDS=12

LOG_CHANNEL=stack,flare
Expand Down Expand Up @@ -43,7 +44,7 @@ MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_SCHEME=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v5

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.4
extensions: posix, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/public/build
/public/storage
/storage/*.key
/storage/pail
/vendor
.env
.env.backup
Expand All @@ -14,3 +15,4 @@ yarn-error.log
storage/debugbar
.DS_Store
.phpunit.cache
/.nova
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ Potential statuses:
## Instructions for hosting/installing yourself
### Requirements

* PHP >= 8.1 with [the extensions listed in the Laravel docs](https://laravel.com/docs/9.x/deployment#server-requirements)
* A [supported relational database](http://laravel.com/docs/9.x/database#introduction) and corresponding PHP extension
* PHP >= 8.4 with [the extensions listed in the Laravel docs](https://laravel.com/docs/12.x/deployment#server-requirements)
* A [supported relational database](http://laravel.com/docs/12.x/database#introduction) and corresponding PHP extension
* [Composer](https://getcomposer.org/download/)
* [NPM](https://nodejs.org/)

Expand Down
9 changes: 1 addition & 8 deletions app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,4 @@

namespace App\Http\Controllers;

use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;

abstract class Controller extends BaseController
{
use AuthorizesRequests, ValidatesRequests;
}
abstract class Controller {}
12 changes: 7 additions & 5 deletions app/Models/LaravelVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Models;

use Illuminate\Database\Eloquent\Attributes\Scope;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Factories\HasFactory;
Expand Down Expand Up @@ -69,11 +70,6 @@ public function last(): HasOne
->ofMany(['order' => 'MAX']);
}

public function scopeReleased($query)
{
$query->where('released_at', '<=', now());
}

public function getReleases(): Collection
{
return static::withoutGlobalScope('first')
Expand Down Expand Up @@ -159,6 +155,12 @@ public function needsNotification()
return false;
}

#[Scope]
protected function released($query)
{
$query->where('released_at', '<=', now());
}

protected function casts(): array
{
return [
Expand Down
49 changes: 7 additions & 42 deletions artisan
Original file line number Diff line number Diff line change
@@ -1,53 +1,18 @@
#!/usr/bin/env php
<?php

define('LARAVEL_START', microtime(true));
use Illuminate\Foundation\Application;
use Symfony\Component\Console\Input\ArgvInput;

/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/
define('LARAVEL_START', microtime(true));

// Register the Composer autoloader...
require __DIR__.'/vendor/autoload.php';

// Bootstrap Laravel and handle the command...
/** @var Application $app */
$app = require_once __DIR__.'/bootstrap/app.php';

/*
|--------------------------------------------------------------------------
| Run The Artisan Application
|--------------------------------------------------------------------------
|
| When we run the console application, the current CLI command will be
| executed in this console and the response sent back to a terminal
| or another output device for the developers. Here goes nothing!
|
*/

$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);

$status = $kernel->handle(
$input = new Symfony\Component\Console\Input\ArgvInput,
new Symfony\Component\Console\Output\ConsoleOutput
);

/*
|--------------------------------------------------------------------------
| Shutdown The Application
|--------------------------------------------------------------------------
|
| Once Artisan has finished running, we will fire off the shutdown events
| so that any final work may be done by the application before we shut
| down the process. This is the last thing to happen to the request.
|
*/

$kernel->terminate($input, $status);
$status = $app->handleCommand(new ArgvInput);

exit($status);
22 changes: 13 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
],
"license": "MIT",
"require": {
"php": "^8.2",
"codezero/laravel-localized-routes": "^4.0.1",
"guzzlehttp/guzzle": "^7.9.2",
"laravel/framework": "^11.45",
"laravel/tinker": "^2.10",
"php": "^8.4",
"laravel/framework": "^12.28",
"laravel/tinker": "^2.10.1",
"opgginc/codezero-laravel-localized-routes": "^5.1",
"phlak/semver": "^4.1",
"silber/page-cache": "^1.1",
"spatie/laravel-ignition": "^2.9"
Expand All @@ -21,11 +20,12 @@
"barryvdh/laravel-debugbar": "^3.16",
"brianium/paratest": "^7.7",
"fakerphp/faker": "^1.24.1",
"laravel/sail": "^1.40",
"laravel/sail": "^1.41",
"mockery/mockery": "^1.6.12",
"nunomaduro/collision": "^8.5",
"phpunit/phpunit": "^11.5.3",
"tightenco/duster": "^3.1"
"nunomaduro/collision": "^8.6",
"phpunit/phpunit": "^12.0",
"tightenco/duster": "^3.1",
"laravel/pail": "^1.2.2"
},
"config": {
"optimize-autoloader": true,
Expand Down Expand Up @@ -74,6 +74,10 @@
],
"fix": [
"vendor/bin/duster fix"
],
"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"
]
}
}
Loading