Skip to content

Commit

Permalink
chore: upgrade to Laravel 11 (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Mar 18, 2024
1 parent f300dc4 commit b7763f6
Show file tree
Hide file tree
Showing 11 changed files with 1,197 additions and 2,245 deletions.
2 changes: 1 addition & 1 deletion app/Helpers/PingsCount.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Helpers;

use Illuminate\Support\Carbon;
use Carbon\CarbonInterface as Carbon;
use Illuminate\Support\Facades\DB;

class PingsCount
Expand Down
2 changes: 1 addition & 1 deletion app/Models/AggregateContactsDay.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class AggregateContactsDay extends Model
/**
* The attributes that are mass assignable.
*
* @var array<string>
* @var array<int,string>
*/
protected $fillable = [
'date',
Expand Down
2 changes: 1 addition & 1 deletion app/Models/AggregateContactsMonth.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class AggregateContactsMonth extends Model
/**
* The attributes that are mass assignable.
*
* @var array<string>
* @var array<int,string>
*/
protected $fillable = [
'date',
Expand Down
2 changes: 1 addition & 1 deletion app/Models/AggregateContactsWeek.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class AggregateContactsWeek extends Model
/**
* The attributes that are mass assignable.
*
* @var array<string>
* @var array<int,string>
*/
protected $fillable = [
'date',
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Cron extends Model
/**
* The attributes that are mass assignable.
*
* @var array<string>
* @var array<int,string>
*/
protected $fillable = [
'command',
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Host.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Host extends Model
/**
* The attributes that are mass assignable.
*
* @var array<string>
* @var array<int,string>
*/
protected $fillable = [
'uuid',
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Ping.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Ping extends Model
/**
* The attributes that are mass assignable.
*
* @var array<string>
* @var array<int,string>
*/
protected $fillable = [
'host_id',
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Release.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Release extends Model
/**
* The attributes that are mass assignable.
*
* @var array<string>
* @var array<int,string>
*/
protected $fillable = [
'version',
Expand Down
8 changes: 4 additions & 4 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class User extends Authenticatable
/**
* The attributes that are mass assignable.
*
* @var array<string>
* @var array<int,string>
*/
protected $fillable = [
'name',
Expand All @@ -32,7 +32,7 @@ class User extends Authenticatable
/**
* The attributes that should be hidden for arrays.
*
* @var array<int, string>
* @var array<int,string>
*/
protected $hidden = [
'password',
Expand All @@ -44,7 +44,7 @@ class User extends Authenticatable
/**
* The attributes that should be cast to native types.
*
* @var array<string, string>
* @var array<string,string>
*/
protected $casts = [
'email_verified_at' => 'datetime',
Expand All @@ -53,7 +53,7 @@ class User extends Authenticatable
/**
* The accessors to append to the model's array form.
*
* @var array
* @var array<int,string>
*/
protected $appends = [
'profile_photo_url',
Expand Down
15 changes: 7 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,24 @@
"require": {
"php": "^8.2",
"doctrine/dbal": "^3.2",
"guzzlehttp/guzzle": "^7.0.1",
"inertiajs/inertia-laravel": "^0",
"guzzlehttp/guzzle": "^7.4",
"inertiajs/inertia-laravel": "^1.0",
"laravel/fortify": "^1.12",
"laravel/framework": "^10.0",
"laravel/jetstream": "^4.0",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.6",
"laravel/framework": "^11.0",
"laravel/jetstream": "^5.0",
"laravel/sanctum": "^4.0",
"laravel/ui": "^4.0",
"monicahq/laravel-cloudflare": "^3.0",
"sentry/sentry-laravel": "^4.0",
"thecodingmachine/safe": "^2.0",
"tightenco/ziggy": "^1.0"
"tightenco/ziggy": "^2.0"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3",
"fakerphp/faker": "^1.10",
"larastan/larastan": "^2.1",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^7.0",
"nunomaduro/collision": "^8.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpunit/phpunit": "^10.0",
"psalm/plugin-laravel": "^2.0",
Expand Down
Loading

0 comments on commit b7763f6

Please sign in to comment.