1
0
Fork 0
mirror of https://github.com/archtechx/template.git synced 2025-12-12 05:14:04 +00:00

upgrade to Laravel 11

This commit is contained in:
Samuel Štancl 2024-04-24 18:11:15 +02:00
parent caa1260fb1
commit 88ccb84e42
4 changed files with 21 additions and 16 deletions

2
.gitignore vendored
View file

@ -1,4 +1,4 @@
.phpunit.result.cache
.phpunit.cache
package-lock.json
composer.lock
vendor/

View file

@ -1,6 +1,6 @@
# REPLACE
Simple and flexible package template. Supports Laravel 8 and 9.
Simple and flexible package template. Supports Laravel 11.
# Template usage

View file

@ -20,14 +20,14 @@
}
},
"require": {
"php": "^8.0",
"illuminate/support": "^8.24|^9.0"
"php": "^8.3",
"illuminate/support": "^11.0"
},
"require-dev": {
"orchestra/testbench": "^6.9|^7.0",
"nunomaduro/larastan": "^1.0|^2.0",
"pestphp/pest": "^1.2",
"pestphp/pest-plugin-laravel": "^1.0"
"orchestra/testbench": "^9.0",
"nunomaduro/larastan": "^2.0",
"pestphp/pest": "^2.0",
"pestphp/pest-plugin-laravel": "^2.0"
},
"extra": {
"laravel": {
@ -37,5 +37,10 @@
}
},
"minimum-stability": "dev",
"prefer-stable": true
"prefer-stable": true,
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
}
}
}

View file

@ -1,9 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">./src</directory>
</include>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<coverage>
<report>
<clover outputFile="coverage/phpunit/clover.xml"/>
<html outputDirectory="coverage/phpunit/html" lowUpperBound="35" highLowerBound="70"/>
@ -22,12 +19,15 @@
<env name="MAIL_DRIVER" value="array"/>
<env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="DB_CONNECTION" value="testbench"/>
<env name="DB_DATABASE" value="main"/>
<!-- <env name="DB_CONNECTION" value="sqlite"/> -->
<!-- <env name="DB_DATABASE" value=":memory:"/> -->
<env name="AWS_DEFAULT_REGION" value="us-west-2"/>
</php>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>