Browse Source

⬆️ Passe à Laravel 8

laravel_8
Clement 7 months ago
parent
commit
a3a9a1f6cc
  1. 2
      app/Providers/AppServiceProvider.php
  2. 22
      composer.json
  3. 1995
      composer.lock
  4. 2
      database/factories/UserFactory.php
  5. 32
      database/migrations/2020_09_25_090124_update_failed_jobs_laravel8.php
  6. 2
      database/seeders/DatabaseSeeder.php
  7. 4
      public/index.php

2
app/Providers/AppServiceProvider.php

@ -2,6 +2,7 @@
namespace App\Providers;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;
@ -34,5 +35,6 @@ class AppServiceProvider extends ServiceProvider
}
return sprintf('%s m²', number_format($surface, 0, ',', ' '));
});
Paginator::useBootstrap();
}
}

22
composer.json

@ -8,27 +8,27 @@
],
"license": "MIT",
"require": {
"php": "^7.2.5",
"php": "^7.3.0",
"ext-json": "*",
"absmoca/leboncoin": "dev-master",
"artesaos/seotools": "^0.18.0",
"artesaos/seotools": "^0",
"emanueleminotto/simple-html-dom": "^1.5",
"fabpot/goutte": "^3.1",
"fabpot/goutte": "^4.0",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "^7.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.0",
"laravel/tinker": "^2.0",
"laravel/ui": "^2.1",
"laravel/ui": "^3.0",
"spatie/laravel-feed": "^2.7",
"spatie/laravel-query-builder": "^2.8"
},
"require-dev": {
"facade/ignition": "^2.0",
"facade/ignition": "^2.3.6",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5"
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.0"
},
"config": {
"optimize-autoloader": true,
@ -42,7 +42,9 @@
},
"autoload": {
"psr-4": {
"App\\": "app/"
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
},
"classmap": [
"database/seeds",

1995
composer.lock
File diff suppressed because it is too large
View File

2
database/factories/UserFactory.php

@ -1,5 +1,7 @@
<?php
namespace Database\Factories;
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\User;

32
database/migrations/2020_09_25_090124_update_failed_jobs_laravel8.php

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdateFailedJobsLaravel8 extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('failed_jobs', function (Blueprint $table) {
$table->string('uuid')->after('id')->nullable()->unique();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('failed_jobs', static function (Blueprint $table) {
$table->dropColumn('uuid');
});
}
}

2
database/seeds/DatabaseSeeder.php → database/seeders/DatabaseSeeder.php

@ -1,5 +1,7 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder

4
public/index.php

@ -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

Loading…
Cancel
Save