Skip to content

Commit

Permalink
feat: Laravel 10 update
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Sep 2, 2024
1 parent b52b83f commit 0dbceb4
Show file tree
Hide file tree
Showing 5 changed files with 988 additions and 845 deletions.
2 changes: 1 addition & 1 deletion app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Kernel extends HttpKernel
],
];

protected $routeMiddleware = [
protected $middlewareAliases = [
'auth' => \App\Http\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
Expand Down
7 changes: 7 additions & 0 deletions app/Models/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ class Server extends Model
'enabled'
];

protected function casts(): array
{
return [
'control_port' => 'integer',
];
}

/**
* Get all servers
*
Expand Down
2 changes: 1 addition & 1 deletion app/Providers/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ class AuthServiceProvider extends ServiceProvider
*/
public function boot()
{
$this->registerPolicies();

}
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"doctrine/dbal": "^3.4",
"guzzlehttp/guzzle": "^7.5",
"jackiedo/dotenv-editor": "^2.0",
"laravel/framework": "^9.19",
"laravel/framework": "^10.0",
"laravel/helpers": "^1.5",
"laravel/tinker": "^2.7",
"laravel/ui": "^4.0",
Expand All @@ -40,7 +40,7 @@
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^1.0",
"spatie/laravel-ignition": "^2.0",
"spatie/laravel-web-tinker": "^1.8"
},
"autoload": {
Expand Down
Loading

0 comments on commit 0dbceb4

Please sign in to comment.