Skip to content

Commit

Permalink
upgrade to laravel 11 (#11)
Browse files Browse the repository at this point in the history
* fix: upgrade to laravel 11

* fix: wip

* PHP Linting (Pint)

---------

Co-authored-by: binaryk <[email protected]>
  • Loading branch information
binaryk and binaryk authored Jun 10, 2024
1 parent ef195ba commit 872bcf9
Show file tree
Hide file tree
Showing 34 changed files with 5,049 additions and 2,871 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pint-rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1' # Specify your PHP version here
php-version: '8.2' # Specify your PHP version here
tools: composer:v2

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.1]
php: [8.2]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ 8.1 ]
php: [ 8.2 ]

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion app/Domain/User/Factories/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use App\Domain\User\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;

/**
Expand All @@ -23,7 +24,7 @@ public function definition(): array
'last_name' => $this->faker->name,
'email' => $this->faker->unique()->safeEmail,
'email_verified_at' => now(),
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
'password' => Hash::make('password'),
'remember_token' => Str::random(10),
];
}
Expand Down
4 changes: 2 additions & 2 deletions app/Domain/User/Policies/UserPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ final class UserPolicy
{
use HandlesAuthorization;

public function allowRestify(User $user = null): bool
public function allowRestify(?User $user = null): bool
{
return true;
}

public function show(User $model, User $user = null): bool
public function show(User $model, ?User $user = null): bool
{
return true;
}
Expand Down
19 changes: 0 additions & 19 deletions app/Providers/BroadcastServiceProvider.php

This file was deleted.

30 changes: 15 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@
"keywords": ["laravel", "framework"],
"license": "MIT",
"require": {
"php": "^8.1",
"binaryk/laravel-restify": "^8.0",
"php": "^8.2",
"binaryk/laravel-restify": "^9.0",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/framework": "^11.0",
"laravel/horizon": "^5.17",
"laravel/sanctum": "^3.2",
"laravel/telescope": "^4.15",
"laravel/tinker": "^2.8"
"laravel/sanctum": "^4.0",
"laravel/telescope": "^5.0",
"laravel/tinker": "^2.9"
},
"require-dev": {
"brianium/paratest": "^7.2",
"driftingly/rector-laravel": "^0.21.0",
"driftingly/rector-laravel": "^1.0",
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"nunomaduro/larastan": "^2.0",
"nunomaduro/phpinsights": "^2.8",
"phpunit/phpunit": "^10.1",
"rector/rector": "^0.17.2",
"spatie/laravel-ignition": "^2.0"
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.0",
"larastan/larastan": "^2.9",
"nunomaduro/phpinsights": "^2.11",
"phpunit/phpunit": "^10.0",
"rector/rector": "^1.1",
"spatie/laravel-ignition": "^2.7"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -58,7 +58,7 @@
"fresh": "php artisan fresh --seed",
"larastan": "vendor/bin/phpstan analyse --memory-limit=2G",
"phpinsights": "./vendor/bin/phpinsights analyse --ansi -v --no-interaction --disable-security-check --flush-cache",
"test": "php artisan test --naarallel --stop-on-failure",
"test": "php artisan test --parallel --stop-on-failure",
"pint": "./vendor/bin/pint"
},
"extra": {
Expand Down
Loading

0 comments on commit 872bcf9

Please sign in to comment.