Skip to content

Commit

Permalink
Swap to Laravel Zero 8, support PHP8 (#108)
Browse files Browse the repository at this point in the history
* Swap to Laravel Zero 8, support PHP8 on host machine
  • Loading branch information
Keoghan authored Apr 6, 2021
1 parent 592be27 commit 9b0123b
Show file tree
Hide file tree
Showing 25 changed files with 976 additions and 516 deletions.
3 changes: 3 additions & 0 deletions app/Models/PhpVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Str;

class PhpVersion extends Model
{
use HasFactory;

protected $guarded = [];

/**
Expand Down
3 changes: 3 additions & 0 deletions app/Models/Setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Setting extends Model
{
use HasFactory;

protected $guarded = [];

public static function updateOrCreate($name, $value)
Expand Down
3 changes: 3 additions & 0 deletions app/Models/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
use App\Support\Contracts\Cli;
use App\Support\Nginx\SiteConfBuilder;
use App\Support\Ssl\CertificateBuilder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Str;

class Site extends Model
{
use HasFactory;

protected $guarded = [];
protected $casts = ['secure' => 'boolean'];

Expand Down
14 changes: 8 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
"php": "^7.3",
"ext-json": "*",
"fzaninotto/faker": "^1.8",
"illuminate/database": "^7.0",
"illuminate/view": "^7.0",
"illuminate/database": "^8.0",
"illuminate/view": "^8.0",
"intonate/tinker-zero": "^1.0",
"laravel-zero/framework": "^7.0",
"laravel-zero/framework": "^8.0",
"league/flysystem": "^1.0",
"nunomaduro/laravel-console-menu": "^2.1",
"nunomaduro/laravel-console-menu": "^3.1",
"symfony/yaml": "^5.0",
"vlucas/phpdotenv": "^4.0"
"vlucas/phpdotenv": "^5.0"
},
"require-dev": {
"dms/phpunit-arraysubset-asserts": "^0.2.1",
Expand All @@ -39,7 +39,9 @@
},
"autoload": {
"psr-4": {
"App\\": "app/"
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
},
"files": ["app/Support/helpers.php"]
},
Expand Down
Loading

0 comments on commit 9b0123b

Please sign in to comment.