Skip to content

Commit

Permalink
Merge pull request #14 from nagi125/feature/upgrade-laravel10.x
Browse files Browse the repository at this point in the history
Laravel9 → Laravel10にアップグレード
  • Loading branch information
nagi125 authored Nov 5, 2023
2 parents 123e1ba + 53bb108 commit 5be19e4
Show file tree
Hide file tree
Showing 7 changed files with 481 additions and 1,469 deletions.
2 changes: 1 addition & 1 deletion app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Kernel extends HttpKernel
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
//\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
\Fruitcake\Cors\HandleCors::class,
\Illuminate\Http\Middleware\HandleCors::class,
];

/**
Expand Down
4 changes: 3 additions & 1 deletion app/Models/News.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
class News extends Model
{
// DateTime型に変換
protected $dates = ['public_date'];
protected $casts = [
'public_date' => 'datetime',
];

//
protected $guarded = ['id', 'created_at', 'updated_at'];
Expand Down
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"php": "~8.2.0",
"ext-mbstring": "*",
"barryvdh/laravel-ide-helper": "^2.6",
"bensampo/laravel-enum": "^5.3",
"fruitcake/laravel-cors": "^2.0",
"bensampo/laravel-enum": "^6.6",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^9.0",
"laravel/framework": "^10.0",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.0",
"laravelcollective/html": "^6.1",
"league/flysystem-aws-s3-v3": "^3.0",
Expand All @@ -24,12 +24,13 @@
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.2",
"spatie/laravel-ignition": "^1.0",
"doctrine/dbal": "^3.0",
"fzaninotto/faker": "^1.9.1",
"laravel/ui": "^3.0",
"laravel/ui": "^4.0",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.0"
"phpunit/phpunit": "^9.0",
"spatie/laravel-ignition": "^2.0"
},
"config": {
"optimize-autoloader": true,
Expand Down
Loading

0 comments on commit 5be19e4

Please # to comment.