Browse Source
Merge pull request #12 from nafiesl/laravel_8_upgrade
Laravel 8 upgrade
pull/13/head
Nafies Luthfi
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
797 additions and
407 deletions
-
app/Providers/AppServiceProvider.php
-
composer.json
-
composer.lock
-
phpunit.xml
|
|
|
@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
namespace App\Providers; |
|
|
|
|
|
|
|
use Illuminate\Pagination\Paginator; |
|
|
|
use Illuminate\Support\ServiceProvider; |
|
|
|
|
|
|
|
class AppServiceProvider extends ServiceProvider |
|
|
|
@ -13,7 +14,7 @@ class AppServiceProvider extends ServiceProvider |
|
|
|
*/ |
|
|
|
public function boot() |
|
|
|
{ |
|
|
|
//
|
|
|
|
Paginator::useBootstrap(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
@ -7,18 +7,19 @@ |
|
|
|
"require": { |
|
|
|
"php": "^7.2.5", |
|
|
|
"fideloper/proxy": "^4.0", |
|
|
|
"laravel/framework": "^7.0", |
|
|
|
"laravel/framework": "^8.0", |
|
|
|
"laravel/tinker": "^2.0", |
|
|
|
"laravel/ui": "^2.5" |
|
|
|
"laravel/ui": "^3.0" |
|
|
|
}, |
|
|
|
"require-dev": { |
|
|
|
"beyondcode/laravel-dump-server": "^1.0", |
|
|
|
"filp/whoops": "^2.0", |
|
|
|
"fzaninotto/faker": "^1.4", |
|
|
|
"luthfi/simple-crud-generator": "^1.2", |
|
|
|
"luthfi/simple-crud-generator": "dev-master", |
|
|
|
"mockery/mockery": "^1.0", |
|
|
|
"nunomaduro/collision": "^4.1", |
|
|
|
"phpunit/phpunit": "^8.5" |
|
|
|
"phpunit/phpunit": "^9.0", |
|
|
|
"laravel/legacy-factories": "^1.0" |
|
|
|
}, |
|
|
|
"autoload": { |
|
|
|
"classmap": [ |
|
|
|
|
|
|
|
@ -1,27 +1,18 @@ |
|
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
|
<phpunit backupGlobals="false" |
|
|
|
backupStaticAttributes="false" |
|
|
|
bootstrap="vendor/autoload.php" |
|
|
|
colors="true" |
|
|
|
convertErrorsToExceptions="true" |
|
|
|
convertNoticesToExceptions="true" |
|
|
|
convertWarningsToExceptions="true" |
|
|
|
processIsolation="false" |
|
|
|
stopOnFailure="false"> |
|
|
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> |
|
|
|
<coverage processUncoveredFiles="true"> |
|
|
|
<include> |
|
|
|
<directory suffix=".php">./app</directory> |
|
|
|
</include> |
|
|
|
</coverage> |
|
|
|
<testsuites> |
|
|
|
<testsuite name="Unit"> |
|
|
|
<directory suffix="Test.php">./tests/Unit</directory> |
|
|
|
</testsuite> |
|
|
|
|
|
|
|
<testsuite name="Feature"> |
|
|
|
<directory suffix="Test.php">./tests/Feature</directory> |
|
|
|
</testsuite> |
|
|
|
</testsuites> |
|
|
|
<filter> |
|
|
|
<whitelist processUncoveredFilesFromWhitelist="true"> |
|
|
|
<directory suffix=".php">./app</directory> |
|
|
|
</whitelist> |
|
|
|
</filter> |
|
|
|
<php> |
|
|
|
<env name="APP_ENV" value="testing"/> |
|
|
|
<env name="BCRYPT_ROUNDS" value="4"/> |
|
|
|
|