Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
0e58935
Add upgrade safety tests ahead of the Laravel 9 to 13 upgrades
TurnerCam Nov 16, 2026
9cda1f4
Pin Docker base image to ubuntu:24.04
TurnerCam Oct 19, 2026
ea22454
Convert `optional()` to nullsafe operator
laravel-shift Nov 17, 2026
54c7013
Use Faker methods
laravel-shift Nov 17, 2026
23d9240
Slim `lang` files
laravel-shift Nov 17, 2026
778a553
Remove explicit call to register policies
laravel-shift Nov 17, 2026
d3ba2fe
Shift core files
laravel-shift Nov 17, 2026
b2a6b26
Shift config files
laravel-shift Nov 17, 2026
2a1ce00
Default config files
laravel-shift Nov 17, 2026
b3e8091
Bump Composer dependencies
laravel-shift Nov 17, 2026
408e1cc
Bump NPM dependencies
laravel-shift Nov 17, 2026
58cf8f2
Rename `password_resets` table
laravel-shift Nov 17, 2026
ba9b70d
Add type hints for Laravel 10
laravel-shift Nov 17, 2026
7ca9fe8
Add type hints from DocBlocks
laravel-shift Nov 17, 2026
da0cb64
Remove redundant typing from DocBlocks
laravel-shift Nov 17, 2026
4dcb1b9
Shift cleanup
laravel-shift Nov 17, 2026
7537e18
Fix Shift type hints that broke the Laravel 10 upgrade
TurnerCam Nov 17, 2026
0bd2633
Bump PHPUnit dependencies
laravel-shift Nov 17, 2026
ded8d09
Ignore PHPUnit cache folder
laravel-shift Nov 17, 2026
2d6e917
Adopt PHP attributes in test classes
laravel-shift Nov 17, 2026
6856669
Declare data providers as `static`
laravel-shift Nov 17, 2026
61f5886
Define test classes as `final`
laravel-shift Nov 17, 2026
f02dd2e
Finish the PHPUnit 10 upgrade
TurnerCam Nov 17, 2026
597a42f
Apply Laravel coding style
laravel-shift Nov 17, 2026
beee585
Remove default `app` files
laravel-shift Nov 17, 2026
be477c4
Shift core files
laravel-shift Nov 17, 2026
1955ab3
Streamline config files
laravel-shift Nov 17, 2026
cc9c55f
Set new `ENV` variables
laravel-shift Nov 17, 2026
42ff606
Default new `bootstrap/app.php`
laravel-shift Nov 17, 2026
11ac388
Re-register HTTP middleware
laravel-shift Nov 17, 2026
01c069b
Consolidate service providers
laravel-shift Nov 17, 2026
5238d5d
Re-register service providers
laravel-shift Nov 17, 2026
dc8c8f0
Re-register routes
laravel-shift Nov 17, 2026
dfc3c78
Re-register scheduled commands
laravel-shift Nov 17, 2026
ff52a47
Bump Composer dependencies
laravel-shift Nov 17, 2026
4387fdc
Convert `$casts` property to method
laravel-shift Nov 17, 2026
5148193
Adopt Laravel type hints
laravel-shift Nov 17, 2026
97ec22e
Mark base controller as `abstract`
laravel-shift Nov 17, 2026
f700aa3
Remove `CreatesApplication` testing trait
laravel-shift Nov 17, 2026
b9db176
Preserve Carbon 2 `diff` behavior
laravel-shift Nov 17, 2026
47aa90b
Shift cleanup
laravel-shift Nov 17, 2026
7d16ec7
Finish the Laravel 11 upgrade
TurnerCam Nov 18, 2026
5a28363
Apply Laravel coding style
laravel-shift Nov 18, 2026
6bb4261
Shift core files
laravel-shift Nov 18, 2026
3580c7d
Validate via object directly within Controllers
laravel-shift Nov 18, 2026
64655e3
Remove unused `AuthorizesRequests` trait
laravel-shift Nov 18, 2026
a6134b4
Modernize controller middleware
laravel-shift Nov 18, 2026
364b405
Remove base controller inheritance
laravel-shift Nov 18, 2026
93de839
Default config files
laravel-shift Nov 18, 2026
8df93f7
Shift `ENV` variables
laravel-shift Nov 18, 2026
e544acc
Add Laravel `composer run` scripts
laravel-shift Nov 18, 2026
4f5289e
Bump Composer dependencies
laravel-shift Nov 18, 2026
0626df0
Bump NPM dependencies
laravel-shift Nov 18, 2026
16866bf
Adopt Laravel type hints
laravel-shift Nov 18, 2026
4cb7413
Shift cleanup
laravel-shift Nov 18, 2026
2828cda
Finish the Laravel 12 upgrade
TurnerCam Nov 18, 2026
c9d3ea9
Empty commit for Shift
laravel-shift Nov 18, 2026
a5f960b
Bump PHPUnit dependencies
laravel-shift Nov 18, 2026
c8ae74d
Finish the PHPUnit 12 upgrade
TurnerCam Nov 18, 2026
6443813
TEMPORARY: show the Laravel and PHP versions on the login page
TurnerCam Nov 18, 2026
f160aa8
Shift core files
laravel-shift Nov 18, 2026
181308b
Adopt PHP attributes for class properties
laravel-shift Nov 18, 2026
db7ee0d
Default config files
laravel-shift Nov 18, 2026
c747417
Rename CSRF middleware to PreventRequestForgery
laravel-shift Nov 18, 2026
40ed8e0
Bump Composer dependencies
laravel-shift Nov 18, 2026
5eff7f8
Bump NPM dependencies
laravel-shift Nov 18, 2026
4481b21
Add Laravel `composer run` scripts
laravel-shift Nov 18, 2026
d0f6587
Shift cleanup
laravel-shift Nov 18, 2026
bc002bd
Finish the Laravel 13 upgrade
TurnerCam Nov 19, 2026
35f41f1
Add an environment info panel and a superuser /devinfo page
TurnerCam Nov 19, 2026
e76567b
CI: run on PHP 8.3 and use the project's own PHPUnit
TurnerCam Nov 19, 2026
61976b4
Fix a fresh migrate on MySQL: add forms.conditions after the rename
TurnerCam Nov 20, 2026
8bb848c
Make a fresh migrate build production's schema
TurnerCam Nov 20, 2026
54e4d12
Require the address fields when an admin edits a member
TurnerCam Nov 20, 2026
d56d775
Merge kwartzlab main into shift-13
TurnerCam Dec 3, 2026
eccd44f
Merge kwartzlab main into shift-13
TurnerCam Dec 5, 2026
7bcd240
Move to Ubuntu 26.04 and PHP 8.5
TurnerCam Dec 5, 2026
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
19 changes: 16 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@ APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_LOG_LEVEL=debug
LOG_STACK=single
APP_URL=http://localhost

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
APP_DEPLOY_SECRET=changeme

DB_CONNECTION=mysql
Expand All @@ -14,9 +24,12 @@ DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

BROADCAST_DRIVER=log
CACHE_DRIVER=file
BROADCAST_CONNECTION=log
CACHE_STORE=file
SESSION_DRIVER=file
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
Expand All @@ -28,7 +41,7 @@ MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_SCHEME=null

GOOGLE_CALENDAR_ID=

Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.5
extensions: json, dom, curl, libxml, mbstring, pdo_sqlite, gd, zip
coverage: none

- name: Prepare The Environment
run: cp .env.example .env

Expand All @@ -22,7 +29,7 @@ jobs:
run: php artisan key:generate

- name: Run PHPUnit
run: phpunit
run: vendor/bin/phpunit

lint:
runs-on: ubuntu-24.04
Expand All @@ -34,7 +41,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.5
extensions: json, dom, curl, libxml, mbstring
coverage: none

Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.log
# imported from github laravel template

vendor/
Expand All @@ -7,6 +8,7 @@ npm-debug.log
# Laravel 4 specific
bootstrap/compiled.php
app/storage/
/storage/pail

# Laravel 5 & Lumen specific
public/storage
Expand All @@ -33,7 +35,8 @@ backups
*.swp

# PHPUnit
.phpunit.result.cache
/.phpunit.cache

# Local Development
tink.php
/.nova
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:24.04
FROM ubuntu:26.04

# Install core packages.
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq \
Expand Down
25 changes: 5 additions & 20 deletions app/Console/Commands/CreateApiToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,19 @@
namespace App\Console\Commands;

use App\Models\ApiToken;
use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;
use Illuminate\Support\Carbon;

#[Signature('api-token:create {name : Friendly name for the token} {--expires= : Expiration date (Y-m-d or any strtotime format)} {--abilities=* : Token abilities for future use}')]
#[Description('Create an API token for external services')]
class CreateApiToken extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'api-token:create
{name : Friendly name for the token}
{--expires= : Expiration date (Y-m-d or any strtotime format)}
{--abilities=* : Token abilities for future use}';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Create an API token for external services';

/**
* Execute the console command.
*
* @return int
*/
public function handle()
public function handle(): int
{
$expiresAt = null;
$expiresInput = $this->option('expires');
Expand Down
22 changes: 5 additions & 17 deletions app/Console/Commands/GenerateMemberID.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,14 @@

namespace App\Console\Commands;

use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;

#[Signature('generate:memberids')]
#[Description('Generates a unique membership ID for all users based on date_admitted (sorted alphabetically)')]
class GenerateMemberID extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'generate:memberids';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Generates a unique membership ID for all users based on date_admitted (sorted alphabetically)';

/**
* Create a new command instance.
*
Expand All @@ -32,10 +22,8 @@ public function __construct()

/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$this->info('Generating membership IDs');

Expand Down
20 changes: 4 additions & 16 deletions app/Console/Commands/GenerateUserStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,14 @@
namespace App\Console\Commands;

use Carbon\Carbon;
use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;

#[Signature('generate:userstatus')]
#[Description('Generates User Status table from previous user dates')]
class GenerateUserStatus extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'generate:userstatus';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Generates User Status table from previous user dates';

/**
* Create a new command instance.
*
Expand All @@ -33,8 +23,6 @@ public function __construct()

/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
Expand Down
30 changes: 9 additions & 21 deletions app/Console/Commands/ListApiTokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,18 @@
namespace App\Console\Commands;

use App\Models\ApiToken;
use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;

#[Signature('api-token:list {--revoked : Show revoked tokens only} {--active : Show active tokens only}')]
#[Description('List API tokens')]
class ListApiTokens extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'api-token:list {--revoked : Show revoked tokens only} {--active : Show active tokens only}';

/**
* The console command description.
*
* @var string
*/
protected $description = 'List API tokens';

/**
* Execute the console command.
*
* @return int
*/
public function handle()
public function handle(): int
{
$query = ApiToken::query()->orderBy('id');

Expand Down Expand Up @@ -60,10 +48,10 @@ public function handle()
$token->id,
$token->name,
$token->abilities ? implode(',', $token->abilities) : '',
optional($token->last_used_at)->toDateTimeString(),
optional($token->expires_at)->toDateTimeString(),
optional($token->revoked_at)->toDateTimeString(),
optional($token->created_at)->toDateTimeString(),
$token->last_used_at?->toDateTimeString(),
$token->expires_at?->toDateTimeString(),
$token->revoked_at?->toDateTimeString(),
$token->created_at?->toDateTimeString(),
];
})->all()
);
Expand Down
22 changes: 5 additions & 17 deletions app/Console/Commands/ProcessUserStatusUpdates.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,16 @@
namespace App\Console\Commands;

use App\Traits\UserStatusTrait;
use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;

#[Signature('process:userstatus')]
#[Description('Processes status updates for all users')]
class ProcessUserStatusUpdates extends Command
{
use UserStatusTrait;

/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'process:userstatus';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Processes status updates for all users';

/**
* Create a new command instance.
*
Expand All @@ -35,10 +25,8 @@ public function __construct()

/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$this->info('['.date('Y-m-d G:i:s').'] Processing user status...');

Expand Down
22 changes: 5 additions & 17 deletions app/Console/Commands/RegenerateThumbnails.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,15 @@

namespace App\Console\Commands;

use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;
use Image;
use Intervention\Image\ImageManagerStatic as Image;

#[Signature('generate:thumbnails {--type= : Image types to process (valid: all, users, teams, gatekeepers)}')]
#[Description('Regenerates image thumbnails of database-linked photos')]
class RegenerateThumbnails extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'generate:thumbnails {--type= : Image types to process (valid: all, users, teams, gatekeepers)}';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Regenerates image thumbnails of database-linked photos';

/**
* Create a new command instance.
*
Expand All @@ -33,8 +23,6 @@ public function __construct()

/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
Expand Down
22 changes: 5 additions & 17 deletions app/Console/Commands/ResendMembersApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,18 @@

namespace App\Console\Commands;

use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;

#[Signature('email:memberapp {--email= : Member email address (will re-send latest application) } {--recipient= : Recipient address to send emails (overrides pre-configured options)}')]
#[Description('Resends a membership application')]
class ResendMembersApp extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'email:memberapp {--email= : Member email address (will re-send latest application) } {--recipient= : Recipient address to send emails (overrides pre-configured options)}';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Resends a membership application';

/**
* Execute the console command.
*
* @return int
*/
public function handle()
public function handle(): int
{
if ($this->option('email')) {

Expand Down
Loading
Loading