mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 19:31:07 +03:30
feat: upgrade laravel version from 7 to 8
This commit is contained in:
+6
-6
@@ -9,16 +9,16 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.4",
|
"php": "^7.4",
|
||||||
"laravel/framework": "^7.0",
|
"laravel/framework": "^8.0",
|
||||||
"laravel/passport": "^9.3.2",
|
"laravel/passport": "^10.0",
|
||||||
"coraxster/flysystem-aws-s3-v3-minio": "^1.0",
|
"coraxster/flysystem-aws-s3-v3-minio": "^1.0",
|
||||||
"fideloper/proxy": "^4.0",
|
"fideloper/proxy": "^4.0",
|
||||||
"spatie/laravel-medialibrary": "^7.0",
|
"spatie/laravel-medialibrary": "^7.0",
|
||||||
"kalnoy/nestedset": "^5.0",
|
"kalnoy/nestedset": "^5.0",
|
||||||
"laravel/tinker": "^2.0",
|
"laravel/tinker": "^2.0",
|
||||||
"lcobucci/jwt": "3.3.3",
|
"lcobucci/jwt": "^4.0",
|
||||||
"maatwebsite/excel": "^3.1",
|
"maatwebsite/excel": "^3.1",
|
||||||
"milon/barcode": "^7.0",
|
"milon/barcode": "^8.0",
|
||||||
"sentry/sentry-laravel": "^2.3",
|
"sentry/sentry-laravel": "^2.3",
|
||||||
"spatie/laravel-permission": "^3.0"
|
"spatie/laravel-permission": "^3.0"
|
||||||
},
|
},
|
||||||
@@ -27,8 +27,8 @@
|
|||||||
"filp/whoops": "^2.0",
|
"filp/whoops": "^2.0",
|
||||||
"fzaninotto/faker": "^1.4",
|
"fzaninotto/faker": "^1.4",
|
||||||
"mockery/mockery": "^1.0",
|
"mockery/mockery": "^1.0",
|
||||||
"nunomaduro/collision": "^4.1",
|
"nunomaduro/collision": "^5.0",
|
||||||
"phpunit/phpunit": "^8.5"
|
"phpunit/phpunit": "^9"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"optimize-autoloader": true,
|
"optimize-autoloader": true,
|
||||||
|
|||||||
Generated
+1605
-617
File diff suppressed because it is too large
Load Diff
Regular → Executable
+21
-22
@@ -1,26 +1,25 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use App\User;
|
namespace Database\Factories;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Faker\Generator as Faker;
|
|
||||||
|
|
||||||
/*
|
class UserFactory extends Factory
|
||||||
|--------------------------------------------------------------------------
|
{
|
||||||
| Model Factories
|
/**
|
||||||
|--------------------------------------------------------------------------
|
* Define the model's default state.
|
||||||
|
|
*
|
||||||
| This directory should contain each of the model factory definitions for
|
* @return array
|
||||||
| your application. Factories provide a convenient way to generate new
|
*/
|
||||||
| model instances for testing / seeding your application's database.
|
public function definition()
|
||||||
|
|
{
|
||||||
*/
|
return [
|
||||||
|
'name' => $this->faker->name,
|
||||||
$factory->define(User::class, function (Faker $faker) {
|
'email' => $this->faker->unique()->safeEmail,
|
||||||
return [
|
'email_verified_at' => now(),
|
||||||
'name' => $faker->name,
|
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
|
||||||
'email' => $faker->unique()->safeEmail,
|
'remember_token' => Str::random(10),
|
||||||
'email_verified_at' => now(),
|
];
|
||||||
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
|
}
|
||||||
'remember_token' => Str::random(10),
|
}
|
||||||
];
|
|
||||||
});
|
|
||||||
|
|||||||
@@ -9,6 +9,12 @@
|
|||||||
|
|
||||||
define('LARAVEL_START', microtime(true));
|
define('LARAVEL_START', microtime(true));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
|
||||||
|
require $maintenance;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Register The Auto Loader
|
| Register The Auto Loader
|
||||||
|
|||||||
Reference in New Issue
Block a user