updated to PHP 8 and Laravel 8

This commit is contained in:
Beth Parker 2022-02-03 23:48:06 -06:00
parent fafe02f4f4
commit ebcb124adc
6 changed files with 2824 additions and 1501 deletions

View file

@ -8,21 +8,21 @@
],
"license": "MIT",
"require": {
"php": "^7.2.5",
"php": "^8.0",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.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",
"laravelcollective/html": "^6.1"
},
"require-dev": {
"facade/ignition": "^2.0",
"fzaninotto/faker": "^1.9.1",
"facade/ignition": "^2.3.6",
"fakerphp/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5"
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3"
},
"config": {
"optimize-autoloader": true,
@ -36,12 +36,10 @@
},
"autoload": {
"psr-4": {
"App\\": "app/"
},
"classmap": [
"database/seeds",
"database/factories"
]
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {

4252
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,28 +1,26 @@
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
namespace Database\Factories;
use App\User;
use Faker\Generator as Faker;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generate new
| model instances for testing / seeding your application's database.
|
class UserFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array
*/
$factory->define(User::class, function (Faker $faker) {
public function definition()
{
return [
'name' => $faker->name,
'email' => $faker->unique()->safeEmail,
'name' => $this->faker->name(),
'email' => $this->faker->unique()->safeEmail,
'email_verified_at' => now(),
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
'remember_token' => Str::random(10),
];
});
}
}

View file

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

View file

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

View file

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