Update to Laravel & PHP 8

This commit is contained in:
Miguel Nogueira 2021-10-12 18:08:15 +01:00
parent 85c719c24d
commit a3d0730808
11 changed files with 3109 additions and 1702 deletions

View File

@ -10,7 +10,7 @@ APP_SITEHOMEPAGE=""
LOG_CHANNEL=stack LOG_CHANNEL=stack
DB_CONNECTION=mysql DB_CONNECTION=mysql
DB_HOST=127.0.0.1 DB_HOST=z
DB_PORT=3306 DB_PORT=3306
DB_DATABASE=laravel DB_DATABASE=laravel
DB_USERNAME=root DB_USERNAME=root

View File

@ -8,33 +8,33 @@
], ],
"license": "MIT", "license": "MIT",
"require": { "require": {
"php": "^7.2.5", "php": "^8.0",
"ext-imagick": "*", "ext-imagick": "*",
"ext-json": "*", "ext-json": "*",
"arcanedev/log-viewer": "^7.0", "arcanedev/log-viewer": "^8.1.0",
"doctrine/dbal": "^2.10", "doctrine/dbal": "^2.10",
"fideloper/proxy": "^4.2", "fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0", "fruitcake/laravel-cors": "^1.0",
"geo-sot/laravel-env-editor": "^0.9.9", "geo-sot/laravel-env-editor": "^0.9.9",
"graham-campbell/markdown": "^12.0", "graham-campbell/markdown": "^13.1",
"guzzlehttp/guzzle": "^6.5", "guzzlehttp/guzzle": "^7.0.1",
"jeroennoten/laravel-adminlte": "^3.2", "jeroennoten/laravel-adminlte": "^3.2",
"laravel/framework": "^7.0", "laravel/framework": "^8.0",
"laravel/slack-notification-channel": "^2.0", "laravel/slack-notification-channel": "^2.0",
"laravel/tinker": "^2.0", "laravel/tinker": "^2.0",
"laravel/ui": "^2.0", "laravel/ui": "^3.0",
"mcamara/laravel-localization": "^1.5", "mcamara/laravel-localization": "^1.5",
"pragmarx/google2fa-laravel": "^1.3", "pragmarx/google2fa-laravel": "^1.3",
"sentry/sentry-laravel": "1.7.1", "sentry/sentry-laravel": "2.9.0",
"spatie/laravel-permission": "^3.13" "spatie/laravel-permission": "^3.13"
}, },
"require-dev": { "require-dev": {
"barryvdh/laravel-debugbar": "^3.3", "barryvdh/laravel-debugbar": "^3.3",
"facade/ignition": "^2.0", "facade/ignition": "^2.3.6",
"fzaninotto/faker": "^1.9.1", "fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1", "mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1", "nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^8.5" "phpunit/phpunit": "^9.3"
}, },
"config": { "config": {
"optimize-autoloader": true, "optimize-autoloader": true,
@ -50,10 +50,8 @@
"psr-4": { "psr-4": {
"App\\": "app/" "App\\": "app/"
}, },
"classmap": [ "Database\\Factories\\": "database/factories/",
"database/seeds", "Database\\Seeders\\": "database/seeders/"
"database/factories"
]
}, },
"autoload-dev": { "autoload-dev": {
"psr-4": { "psr-4": {

4733
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,8 @@
/** @var \Illuminate\Database\Eloquent\Factory $factory */ /** @var \Illuminate\Database\Eloquent\Factory $factory */
namespace Database\Factories;
use App\User; use App\User;
use Faker\Generator as Faker; use Faker\Generator as Faker;
use Illuminate\Support\Str; use Illuminate\Support\Str;

View File

@ -0,0 +1,20 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call(\Database\Seeders\PermissionSeeder::class);
$this->call(\Database\Seeders\UserSeeder::class);
$this->call(\Database\Seeders\DefaultOptionsSeeder::class);
}
}

View File

@ -1,4 +1,5 @@
<?php <?php
namespace Database\Seeders;
use App\Facades\Options; use App\Facades\Options;
use Illuminate\Database\Seeder; use Illuminate\Database\Seeder;

View File

@ -1,4 +1,5 @@
<?php <?php
namespace Database\Seeders;
use Illuminate\Database\Seeder; use Illuminate\Database\Seeder;
use Spatie\Permission\Models\Permission; use Spatie\Permission\Models\Permission;

View File

@ -1,4 +1,5 @@
<?php <?php
namespace Database\Seeders;
use Illuminate\Database\Seeder; use Illuminate\Database\Seeder;
use Spatie\Permission\Models\Permission; use Spatie\Permission\Models\Permission;

View File

@ -1,4 +1,5 @@
<?php <?php
namespace Database\Seeders;
use App\Profile; use App\Profile;
use App\User; use App\User;

View File

@ -1,18 +0,0 @@
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call(PermissionSeeder::class);
$this->call(UserSeeder::class);
$this->call(DefaultOptionsSeeder::class);
}
}

View File

@ -9,6 +9,10 @@
define('LARAVEL_START', microtime(true)); define('LARAVEL_START', microtime(true));
if (file_exists(__DIR__.'/../storage/framework/maintenance.php')) {
require __DIR__.'/../storage/framework/maintenance.php';
}
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Register The Auto Loader | Register The Auto Loader