bump to laravel 8

This commit is contained in:
Jérémy Munsch 2021-10-13 14:30:01 +02:00
parent b2eb9c62ca
commit 225342279d
No known key found for this signature in database
GPG key ID: 55196BEE445F6049
11 changed files with 1510 additions and 853 deletions

View file

@ -7,6 +7,7 @@ use App\Models\Articles;
use App\Models\GeneralConfig;
use App\Models\Moments;
use Carbon\Carbon;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\Log;
@ -54,6 +55,9 @@ class AppServiceProvider extends ServiceProvider
));
Carbon::setLocale(config('app.locale'));
// force bootstrap paginator
Paginator::useBootstrap();
if (!app()->runningInConsole()) {
try {
View::share('momentFiche', Moments::getCachedStar() ?? false);

View file

@ -15,15 +15,17 @@
"doctrine/dbal": "^2.0",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^6.3",
"guzzlehttp/guzzle": "^7.0.1",
"htmlmin/htmlmin": "^8.0",
"kwaadpepper/enum": "^2.1",
"kwaadpepper/exception-handler": "^0.0.3",
"kwaadpepper/image-resizer": "^0.0.8",
"kwaadpepper/refresh-sitemap": "^0.0.1",
"laravel/framework": "^7.0",
"laravel/framework": "^8.0",
"facade/ignition": "^2.3.6",
"laravel/tinker": "^2.0",
"laravel/ui": "^2.1",
"laravel/ui": "^3.0",
"nunomaduro/collision": "^5.0",
"league/csv": "^9.6",
"mews/purifier": "^3.3",
"riverskies/laravel-mobile-detect": "^1.3",
@ -34,14 +36,19 @@
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.5",
"facade/ignition": "^2.0",
"fzaninotto/faker": "^1.9.1",
"laravel-lang/lang": "~7.0",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5",
"phpunit/phpunit": "^9.0",
"slevomat/coding-standard": "^7.0"
},
"repositories": [
{
"name": "ldc/ldccrmv2client",
"type": "vcs",
"url": "https://voight001.lesidc.com/crm-client"
}
],
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
@ -55,12 +62,10 @@
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\": "database/"
},
"classmap": [
"database/seeds",
"database/factories"
]
"Database\\": "database/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {

2276
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
class AddUuidToFailedJobsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('failed_jobs', function (Blueprint $table) {
$table->string('uuid')->after('id')->nullable()->unique();
});
DB::table('failed_jobs')->whereNull('uuid')->cursor()->each(function ($job) {
DB::table('failed_jobs')
->where('id', $job->id)
->update(['uuid' => (string)\Illuminate\Support\Str::uuid()]);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('failed_jobs', function (Blueprint $table) {
$table->dropColumn('uuid');
});
}
}

View file

@ -1,5 +1,7 @@
<?php
namespace Database\Seeders;
use App\Models\Actu;
use App\Models\Tag;
use Illuminate\Database\Seeder;

View file

@ -1,5 +1,7 @@
<?php
namespace Database\Seeders;
use App\Enums\BreedingPageType;
use App\Models\BreedingPage;
use Illuminate\Database\Seeder;

View file

@ -1,5 +1,7 @@
<?php
namespace Database\Seeders;
use Database\Seeds\DepartaimantCollectionSeeder;
use Illuminate\Database\Seeder;

View file

@ -1,6 +1,6 @@
<?php
namespace Database\Seeds;
namespace Database\Seeders;
use App\Models\Customers;
use App\Models\DepartaimantsCollection;

View file

@ -1,5 +1,7 @@
<?php
namespace Database\Seeders;
use App\Models\SubRange;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

View file

@ -1,5 +1,7 @@
<?php
namespace Database\Seeders;
use App\Models\Tag;
use Illuminate\Database\Seeder;

View file

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