Update to Laravel 8.x

This commit is contained in:
Tyler 2020-12-21 03:00:51 -05:00
parent d8e3abac44
commit c73705a3cb
5 changed files with 310 additions and 175 deletions

View File

@ -2,6 +2,7 @@
namespace App\Providers; namespace App\Providers;
use Illuminate\Pagination\Paginator;
use Schema; use Schema;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
@ -13,6 +14,7 @@ class AppServiceProvider extends ServiceProvider {
*/ */
public function boot() { public function boot() {
Schema::defaultStringLength(191); Schema::defaultStringLength(191);
Paginator::useBootstrap();
} }
/** /**

View File

@ -5,31 +5,30 @@
"license": "MIT", "license": "MIT",
"type": "project", "type": "project",
"require": { "require": {
"php": "^7.2.5|^8.0", "php": "^7.3|^8.0",
"fideloper/proxy": "^4.4", "fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0", "fruitcake/laravel-cors": "^2.0",
"google/apiclient": "^2.2", "google/apiclient": "^2.2",
"guzzlehttp/guzzle": "^6.3.1|^7.0.1", "guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^7.29", "laravel/framework": "^8.12",
"laravel/tinker": "^2.5", "laravel/tinker": "^2.5",
"laravel/ui": "^2.0", "laravel/ui": "^3.0",
"sunra/php-simple-html-dom-parser": "^1.5", "sunra/php-simple-html-dom-parser": "^1.5",
"yajra/laravel-datatables-oracle": "^9.0" "yajra/laravel-datatables-oracle": "^9.0"
}, },
"require-dev": { "require-dev": {
"facade/ignition": "^2.0", "facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1", "fakerphp/faker": "^1.9.1",
"mockery/mockery": "^1.3.1", "laravel/sail": "^0.0.5",
"nunomaduro/collision": "^4.3", "mockery/mockery": "^1.4.2",
"phpunit/phpunit": "^8.5.8|^9.3.3" "nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3"
}, },
"autoload": { "autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": { "psr-4": {
"App\\": "app/" "App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
} }
}, },
"autoload-dev": { "autoload-dev": {

408
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "d1ed719684d90134333ade37dd409fc8", "content-hash": "1886bee2915e5dc301b32ff1b9f8a228",
"packages": [ "packages": [
{ {
"name": "asm89/stack-cors", "name": "asm89/stack-cors",
@ -312,30 +312,32 @@
}, },
{ {
"name": "dragonmantank/cron-expression", "name": "dragonmantank/cron-expression",
"version": "v2.3.1", "version": "v3.1.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/dragonmantank/cron-expression.git", "url": "https://github.com/dragonmantank/cron-expression.git",
"reference": "65b2d8ee1f10915efb3b55597da3404f096acba2" "reference": "7a8c6e56ab3ffcc538d05e8155bb42269abf1a0c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/65b2d8ee1f10915efb3b55597da3404f096acba2", "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/7a8c6e56ab3ffcc538d05e8155bb42269abf1a0c",
"reference": "65b2d8ee1f10915efb3b55597da3404f096acba2", "reference": "7a8c6e56ab3ffcc538d05e8155bb42269abf1a0c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.0|^8.0" "php": "^7.2|^8.0",
"webmozart/assert": "^1.7.0"
},
"replace": {
"mtdowling/cron-expression": "^1.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^6.4|^7.0|^8.0|^9.0" "phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-webmozart-assert": "^0.12.7",
"phpunit/phpunit": "^7.0|^8.0|^9.0"
}, },
"type": "library", "type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.3-dev"
}
},
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Cron\\": "src/Cron/" "Cron\\": "src/Cron/"
@ -346,11 +348,6 @@
"MIT" "MIT"
], ],
"authors": [ "authors": [
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
},
{ {
"name": "Chris Tankersley", "name": "Chris Tankersley",
"email": "chris@ctankersley.com", "email": "chris@ctankersley.com",
@ -368,7 +365,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2020-10-13T00:52:37+00:00" "time": "2020-11-24T19:55:57+00:00"
}, },
{ {
"name": "egulias/email-validator", "name": "egulias/email-validator",
@ -765,6 +762,68 @@
], ],
"time": "2020-10-16T21:33:48+00:00" "time": "2020-10-16T21:33:48+00:00"
}, },
{
"name": "graham-campbell/result-type",
"version": "v1.0.1",
"source": {
"type": "git",
"url": "https://github.com/GrahamCampbell/Result-Type.git",
"reference": "7e279d2cd5d7fbb156ce46daada972355cea27bb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/7e279d2cd5d7fbb156ce46daada972355cea27bb",
"reference": "7e279d2cd5d7fbb156ce46daada972355cea27bb",
"shasum": ""
},
"require": {
"php": "^7.0|^8.0",
"phpoption/phpoption": "^1.7.3"
},
"require-dev": {
"phpunit/phpunit": "^6.5|^7.5|^8.5|^9.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
},
"autoload": {
"psr-4": {
"GrahamCampbell\\ResultType\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Graham Campbell",
"email": "graham@alt-three.com"
}
],
"description": "An Implementation Of The Result Type",
"keywords": [
"Graham Campbell",
"GrahamCampbell",
"Result Type",
"Result-Type",
"result"
],
"funding": [
{
"url": "https://github.com/GrahamCampbell",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type",
"type": "tidelift"
}
],
"time": "2020-04-13T13:17:36+00:00"
},
{ {
"name": "guzzlehttp/guzzle", "name": "guzzlehttp/guzzle",
"version": "7.2.0", "version": "7.2.0",
@ -987,21 +1046,21 @@
}, },
{ {
"name": "laravel/framework", "name": "laravel/framework",
"version": "v7.30.0", "version": "v8.19.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/framework.git", "url": "https://github.com/laravel/framework.git",
"reference": "629c36a0fe87b66d8dccd3c82927950d0f59d3f9" "reference": "f5f331cee60f1bbe672503b7eb9ba5b22b2ceacb"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/629c36a0fe87b66d8dccd3c82927950d0f59d3f9", "url": "https://api.github.com/repos/laravel/framework/zipball/f5f331cee60f1bbe672503b7eb9ba5b22b2ceacb",
"reference": "629c36a0fe87b66d8dccd3c82927950d0f59d3f9", "reference": "f5f331cee60f1bbe672503b7eb9ba5b22b2ceacb",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"doctrine/inflector": "^1.4|^2.0", "doctrine/inflector": "^1.4|^2.0",
"dragonmantank/cron-expression": "^2.3.1", "dragonmantank/cron-expression": "^3.0.2",
"egulias/email-validator": "^2.1.10", "egulias/email-validator": "^2.1.10",
"ext-json": "*", "ext-json": "*",
"ext-mbstring": "*", "ext-mbstring": "*",
@ -1011,23 +1070,22 @@
"monolog/monolog": "^2.0", "monolog/monolog": "^2.0",
"nesbot/carbon": "^2.31", "nesbot/carbon": "^2.31",
"opis/closure": "^3.6", "opis/closure": "^3.6",
"php": "^7.2.5|^8.0", "php": "^7.3|^8.0",
"psr/container": "^1.0", "psr/container": "^1.0",
"psr/simple-cache": "^1.0", "psr/simple-cache": "^1.0",
"ramsey/uuid": "^3.7|^4.0", "ramsey/uuid": "^4.0",
"swiftmailer/swiftmailer": "^6.0", "swiftmailer/swiftmailer": "^6.0",
"symfony/console": "^5.0", "symfony/console": "^5.1.4",
"symfony/error-handler": "^5.0", "symfony/error-handler": "^5.1.4",
"symfony/finder": "^5.0", "symfony/finder": "^5.1.4",
"symfony/http-foundation": "^5.0", "symfony/http-foundation": "^5.1.4",
"symfony/http-kernel": "^5.0", "symfony/http-kernel": "^5.1.4",
"symfony/mime": "^5.0", "symfony/mime": "^5.1.4",
"symfony/polyfill-php73": "^1.17", "symfony/process": "^5.1.4",
"symfony/process": "^5.0", "symfony/routing": "^5.1.4",
"symfony/routing": "^5.0", "symfony/var-dumper": "^5.1.4",
"symfony/var-dumper": "^5.0",
"tijsverkoyen/css-to-inline-styles": "^2.2.2", "tijsverkoyen/css-to-inline-styles": "^2.2.2",
"vlucas/phpdotenv": "^4.0", "vlucas/phpdotenv": "^5.2",
"voku/portable-ascii": "^1.4.8" "voku/portable-ascii": "^1.4.8"
}, },
"conflict": { "conflict": {
@ -1041,6 +1099,7 @@
"illuminate/broadcasting": "self.version", "illuminate/broadcasting": "self.version",
"illuminate/bus": "self.version", "illuminate/bus": "self.version",
"illuminate/cache": "self.version", "illuminate/cache": "self.version",
"illuminate/collections": "self.version",
"illuminate/config": "self.version", "illuminate/config": "self.version",
"illuminate/console": "self.version", "illuminate/console": "self.version",
"illuminate/container": "self.version", "illuminate/container": "self.version",
@ -1053,6 +1112,7 @@
"illuminate/hashing": "self.version", "illuminate/hashing": "self.version",
"illuminate/http": "self.version", "illuminate/http": "self.version",
"illuminate/log": "self.version", "illuminate/log": "self.version",
"illuminate/macroable": "self.version",
"illuminate/mail": "self.version", "illuminate/mail": "self.version",
"illuminate/notifications": "self.version", "illuminate/notifications": "self.version",
"illuminate/pagination": "self.version", "illuminate/pagination": "self.version",
@ -1069,21 +1129,20 @@
}, },
"require-dev": { "require-dev": {
"aws/aws-sdk-php": "^3.155", "aws/aws-sdk-php": "^3.155",
"doctrine/dbal": "^2.6", "doctrine/dbal": "^2.6|^3.0",
"filp/whoops": "^2.8", "filp/whoops": "^2.8",
"guzzlehttp/guzzle": "^6.3.1|^7.0.1", "guzzlehttp/guzzle": "^6.5.5|^7.0.1",
"league/flysystem-cached-adapter": "^1.0", "league/flysystem-cached-adapter": "^1.0",
"mockery/mockery": "~1.3.3|^1.4.2", "mockery/mockery": "^1.4.2",
"moontoast/math": "^1.1", "orchestra/testbench-core": "^6.8",
"orchestra/testbench-core": "^5.8",
"pda/pheanstalk": "^4.0", "pda/pheanstalk": "^4.0",
"phpunit/phpunit": "^8.4|^9.3.3", "phpunit/phpunit": "^8.5.8|^9.3.3",
"predis/predis": "^1.1.1", "predis/predis": "^1.1.1",
"symfony/cache": "^5.0" "symfony/cache": "^5.1.4"
}, },
"suggest": { "suggest": {
"aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage and SES mail driver (^3.155).", "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage and SES mail driver (^3.155).",
"doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.6).", "doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.6|^3.0).",
"ext-ftp": "Required to use the Flysystem FTP driver.", "ext-ftp": "Required to use the Flysystem FTP driver.",
"ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().", "ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().",
"ext-memcached": "Required to use the memcache cache driver.", "ext-memcached": "Required to use the memcache cache driver.",
@ -1092,37 +1151,42 @@
"ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0).", "ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0).",
"fakerphp/faker": "Required to use the eloquent factory builder (^1.9.1).", "fakerphp/faker": "Required to use the eloquent factory builder (^1.9.1).",
"filp/whoops": "Required for friendly error pages in development (^2.8).", "filp/whoops": "Required for friendly error pages in development (^2.8).",
"guzzlehttp/guzzle": "Required to use the HTTP Client, Mailgun mail driver and the ping methods on schedules (^6.3.1|^7.0.1).", "guzzlehttp/guzzle": "Required to use the HTTP Client, Mailgun mail driver and the ping methods on schedules (^6.5.5|^7.0.1).",
"laravel/tinker": "Required to use the tinker console command (^2.0).", "laravel/tinker": "Required to use the tinker console command (^2.0).",
"league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^1.0).", "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^1.0).",
"league/flysystem-cached-adapter": "Required to use the Flysystem cache (^1.0).", "league/flysystem-cached-adapter": "Required to use the Flysystem cache (^1.0).",
"league/flysystem-sftp": "Required to use the Flysystem SFTP driver (^1.0).", "league/flysystem-sftp": "Required to use the Flysystem SFTP driver (^1.0).",
"mockery/mockery": "Required to use mocking (~1.3.3|^1.4.2).", "mockery/mockery": "Required to use mocking (^1.4.2).",
"moontoast/math": "Required to use ordered UUIDs (^1.1).",
"nyholm/psr7": "Required to use PSR-7 bridging features (^1.2).", "nyholm/psr7": "Required to use PSR-7 bridging features (^1.2).",
"pda/pheanstalk": "Required to use the beanstalk queue driver (^4.0).", "pda/pheanstalk": "Required to use the beanstalk queue driver (^4.0).",
"phpunit/phpunit": "Required to use assertions and run tests (^8.4|^9.3.3).", "phpunit/phpunit": "Required to use assertions and run tests (^8.5.8|^9.3.3).",
"predis/predis": "Required to use the predis connector (^1.1.2).", "predis/predis": "Required to use the predis connector (^1.1.2).",
"psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).",
"pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^4.0).", "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^4.0).",
"symfony/cache": "Required to PSR-6 cache bridge (^5.0).", "symfony/cache": "Required to PSR-6 cache bridge (^5.1.4).",
"symfony/filesystem": "Required to create relative storage directory symbolic links (^5.0).", "symfony/filesystem": "Required to enable support for relative symbolic links (^5.1.4).",
"symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^2.0).", "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^2.0).",
"wildbit/swiftmailer-postmark": "Required to use Postmark mail driver (^3.0)." "wildbit/swiftmailer-postmark": "Required to use Postmark mail driver (^3.0)."
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "7.x-dev" "dev-master": "8.x-dev"
} }
}, },
"autoload": { "autoload": {
"files": [ "files": [
"src/Illuminate/Collections/helpers.php",
"src/Illuminate/Events/functions.php",
"src/Illuminate/Foundation/helpers.php", "src/Illuminate/Foundation/helpers.php",
"src/Illuminate/Support/helpers.php" "src/Illuminate/Support/helpers.php"
], ],
"psr-4": { "psr-4": {
"Illuminate\\": "src/Illuminate/" "Illuminate\\": "src/Illuminate/",
"Illuminate\\Support\\": [
"src/Illuminate/Macroable/",
"src/Illuminate/Collections/"
]
} }
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
@ -1141,7 +1205,7 @@
"framework", "framework",
"laravel" "laravel"
], ],
"time": "2020-12-01T15:01:25+00:00" "time": "2020-12-15T16:16:31+00:00"
}, },
{ {
"name": "laravel/tinker", "name": "laravel/tinker",
@ -1209,26 +1273,29 @@
}, },
{ {
"name": "laravel/ui", "name": "laravel/ui",
"version": "v2.5.0", "version": "v3.1.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/ui.git", "url": "https://github.com/laravel/ui.git",
"reference": "d01a705763c243b07be795e9d1bb47f89260f73d" "reference": "444072cb2f8baaa15172c5cde2bd30d188c3b7e7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/ui/zipball/d01a705763c243b07be795e9d1bb47f89260f73d", "url": "https://api.github.com/repos/laravel/ui/zipball/444072cb2f8baaa15172c5cde2bd30d188c3b7e7",
"reference": "d01a705763c243b07be795e9d1bb47f89260f73d", "reference": "444072cb2f8baaa15172c5cde2bd30d188c3b7e7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"illuminate/console": "^7.0", "illuminate/console": "^8.0",
"illuminate/filesystem": "^7.0", "illuminate/filesystem": "^8.0",
"illuminate/support": "^7.0", "illuminate/support": "^8.0",
"php": "^7.2.5|^8.0" "php": "^7.3|^8.0"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": {
"dev-master": "3.x-dev"
},
"laravel": { "laravel": {
"providers": [ "providers": [
"Laravel\\Ui\\UiServiceProvider" "Laravel\\Ui\\UiServiceProvider"
@ -1256,7 +1323,7 @@
"laravel", "laravel",
"ui" "ui"
], ],
"time": "2020-11-03T19:45:19+00:00" "time": "2020-11-03T19:51:21+00:00"
}, },
{ {
"name": "league/commonmark", "name": "league/commonmark",
@ -4820,37 +4887,39 @@
}, },
{ {
"name": "vlucas/phpdotenv", "name": "vlucas/phpdotenv",
"version": "v4.1.8", "version": "v5.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/vlucas/phpdotenv.git", "url": "https://github.com/vlucas/phpdotenv.git",
"reference": "572af79d913627a9d70374d27a6f5d689a35de32" "reference": "fba64139db67123c7a57072e5f8d3db10d160b66"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/572af79d913627a9d70374d27a6f5d689a35de32", "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/fba64139db67123c7a57072e5f8d3db10d160b66",
"reference": "572af79d913627a9d70374d27a6f5d689a35de32", "reference": "fba64139db67123c7a57072e5f8d3db10d160b66",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^5.5.9 || ^7.0 || ^8.0", "ext-pcre": "*",
"phpoption/phpoption": "^1.7.3", "graham-campbell/result-type": "^1.0.1",
"symfony/polyfill-ctype": "^1.17" "php": "^7.1.3 || ^8.0",
"phpoption/phpoption": "^1.7.4",
"symfony/polyfill-ctype": "^1.17",
"symfony/polyfill-mbstring": "^1.17",
"symfony/polyfill-php80": "^1.17"
}, },
"require-dev": { "require-dev": {
"bamarni/composer-bin-plugin": "^1.4.1", "bamarni/composer-bin-plugin": "^1.4.1",
"ext-filter": "*", "ext-filter": "*",
"ext-pcre": "*", "phpunit/phpunit": "^7.5.20 || ^8.5.2 || ^9.0"
"phpunit/phpunit": "^4.8.35 || ^5.7.27 || ^6.5.6 || ^7.0"
}, },
"suggest": { "suggest": {
"ext-filter": "Required to use the boolean validator.", "ext-filter": "Required to use the boolean validator."
"ext-pcre": "Required to use most of the library."
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "4.1-dev" "dev-master": "5.2-dev"
} }
}, },
"autoload": { "autoload": {
@ -4890,7 +4959,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2020-07-14T19:22:52+00:00" "time": "2020-09-14T15:57:31+00:00"
}, },
{ {
"name": "voku/portable-ascii", "name": "voku/portable-ascii",
@ -4962,6 +5031,55 @@
], ],
"time": "2020-11-12T00:07:28+00:00" "time": "2020-11-12T00:07:28+00:00"
}, },
{
"name": "webmozart/assert",
"version": "1.9.1",
"source": {
"type": "git",
"url": "https://github.com/webmozart/assert.git",
"reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389",
"reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389",
"shasum": ""
},
"require": {
"php": "^5.3.3 || ^7.0 || ^8.0",
"symfony/polyfill-ctype": "^1.8"
},
"conflict": {
"phpstan/phpstan": "<0.12.20",
"vimeo/psalm": "<3.9.1"
},
"require-dev": {
"phpunit/phpunit": "^4.8.36 || ^7.5.13"
},
"type": "library",
"autoload": {
"psr-4": {
"Webmozart\\Assert\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Bernhard Schussek",
"email": "bschussek@gmail.com"
}
],
"description": "Assertions to validate method input/output with nice error messages.",
"keywords": [
"assert",
"check",
"validate"
],
"time": "2020-07-08T17:02:28+00:00"
},
{ {
"name": "yajra/laravel-datatables-oracle", "name": "yajra/laravel-datatables-oracle",
"version": "v9.15.2", "version": "v9.15.2",
@ -5447,6 +5565,61 @@
], ],
"time": "2020-07-09T08:09:16+00:00" "time": "2020-07-09T08:09:16+00:00"
}, },
{
"name": "laravel/sail",
"version": "v0.0.5",
"source": {
"type": "git",
"url": "https://github.com/laravel/sail.git",
"reference": "d9b0575ece889a35b9741789452c1c7abca5bc2f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/sail/zipball/d9b0575ece889a35b9741789452c1c7abca5bc2f",
"reference": "d9b0575ece889a35b9741789452c1c7abca5bc2f",
"shasum": ""
},
"require": {
"illuminate/contracts": "^8.0|^9.0",
"illuminate/support": "^8.0|^9.0",
"php": "^7.3|^8.0"
},
"bin": [
"bin/sail"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
},
"laravel": {
"providers": [
"Laravel\\Sail\\SailServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"Laravel\\Sail\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Taylor Otwell",
"email": "taylor@laravel.com"
}
],
"description": "Docker files for running a basic Laravel application.",
"keywords": [
"docker",
"laravel"
],
"time": "2020-12-07T20:58:56+00:00"
},
{ {
"name": "mockery/mockery", "name": "mockery/mockery",
"version": "1.4.2", "version": "1.4.2",
@ -5571,35 +5744,35 @@
}, },
{ {
"name": "nunomaduro/collision", "name": "nunomaduro/collision",
"version": "v4.3.0", "version": "v5.1.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/nunomaduro/collision.git", "url": "https://github.com/nunomaduro/collision.git",
"reference": "7c125dc2463f3e144ddc7e05e63077109508c94e" "reference": "7c2b95589bf81e274e61e47f7672a1b2c3e06eaa"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/nunomaduro/collision/zipball/7c125dc2463f3e144ddc7e05e63077109508c94e", "url": "https://api.github.com/repos/nunomaduro/collision/zipball/7c2b95589bf81e274e61e47f7672a1b2c3e06eaa",
"reference": "7c125dc2463f3e144ddc7e05e63077109508c94e", "reference": "7c2b95589bf81e274e61e47f7672a1b2c3e06eaa",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"facade/ignition-contracts": "^1.0", "facade/ignition-contracts": "^1.0",
"filp/whoops": "^2.4", "filp/whoops": "^2.7.2",
"php": "^7.2.5 || ^8.0", "php": "^7.3 || ^8.0",
"symfony/console": "^5.0" "symfony/console": "^5.0"
}, },
"require-dev": { "require-dev": {
"facade/ignition": "^2.0", "fideloper/proxy": "^4.4.0",
"fideloper/proxy": "^4.2", "friendsofphp/php-cs-fixer": "^2.16.4",
"friendsofphp/php-cs-fixer": "^2.16", "fruitcake/laravel-cors": "^2.0.1",
"fruitcake/laravel-cors": "^1.0", "laravel/framework": "^8.0",
"laravel/framework": "^7.0", "laravel/tinker": "^2.4.1",
"laravel/tinker": "^2.0", "nunomaduro/larastan": "^0.6.2",
"nunomaduro/larastan": "^0.6", "nunomaduro/mock-final-classes": "^1.0",
"orchestra/testbench": "^5.0", "orchestra/testbench": "^6.0",
"phpstan/phpstan": "^0.12.3", "phpstan/phpstan": "^0.12.36",
"phpunit/phpunit": "^8.5.1 || ^9.0" "phpunit/phpunit": "^9.3.3"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
@ -5651,7 +5824,7 @@
"type": "patreon" "type": "patreon"
} }
], ],
"time": "2020-10-29T15:12:23+00:00" "time": "2020-10-29T14:50:40+00:00"
}, },
{ {
"name": "phar-io/manifest", "name": "phar-io/manifest",
@ -7307,55 +7480,6 @@
} }
], ],
"time": "2020-07-12T23:59:07+00:00" "time": "2020-07-12T23:59:07+00:00"
},
{
"name": "webmozart/assert",
"version": "1.9.1",
"source": {
"type": "git",
"url": "https://github.com/webmozart/assert.git",
"reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389",
"reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389",
"shasum": ""
},
"require": {
"php": "^5.3.3 || ^7.0 || ^8.0",
"symfony/polyfill-ctype": "^1.8"
},
"conflict": {
"phpstan/phpstan": "<0.12.20",
"vimeo/psalm": "<3.9.1"
},
"require-dev": {
"phpunit/phpunit": "^4.8.36 || ^7.5.13"
},
"type": "library",
"autoload": {
"psr-4": {
"Webmozart\\Assert\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Bernhard Schussek",
"email": "bschussek@gmail.com"
}
],
"description": "Assertions to validate method input/output with nice error messages.",
"keywords": [
"assert",
"check",
"validate"
],
"time": "2020-07-08T17:02:28+00:00"
} }
], ],
"aliases": [], "aliases": [],
@ -7364,7 +7488,7 @@
"prefer-stable": false, "prefer-stable": false,
"prefer-lowest": false, "prefer-lowest": false,
"platform": { "platform": {
"php": "^7.2.5|^8.0" "php": "^7.3|^8.0"
}, },
"platform-dev": [], "platform-dev": [],
"plugin-api-version": "1.1.0" "plugin-api-version": "1.1.0"

View File

@ -1,25 +1,33 @@
<?php <?php
use Faker\Generator as Faker; namespace Database\Factories;
/* use App\Models\User;
|-------------------------------------------------------------------------- use Illuminate\Database\Eloquent\Factories\Factory;
| Model Factories use Illuminate\Support\Str;
|--------------------------------------------------------------------------
| class UserFactory extends Factory
| 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. * The name of the factory's corresponding model.
| *
* @var string
*/ */
protected $model = User::class;
$factory->define(App\User::class, function (Faker $faker) { /**
static $password; * Define the model's default state.
*
* @return array
*/
public function definition()
{
return [ return [
'name' => $faker->name, 'name' => $this->faker->name,
'email' => $faker->unique()->safeEmail, 'email' => $this->faker->unique()->safeEmail,
'password' => $password ?: $password = bcrypt('secret'), 'email_verified_at' => now(),
'remember_token' => str_random(10), 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
'remember_token' => Str::random(10),
]; ];
}); }
}

View File

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