Skip to content

Commit b462772

Browse files
authored
Merge pull request #19 from PlannrCrm/feature/laravel-11-support
Feature | Add support for Laravel 11
2 parents f5055bd + c03839d commit b462772

File tree

4 files changed

+11
-46
lines changed

4 files changed

+11
-46
lines changed

composer.json

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,31 @@
11
{
22
"name": "plannr/laravel-fast-refresh-database",
33
"description": "Refresh your database faster than you've ever seen before 🚀",
4-
"type": "library",
54
"license": "MIT",
6-
"autoload": {
7-
"psr-4": {
8-
"Plannr\\Laravel\\FastRefreshDatabase\\": "src/"
9-
}
10-
},
5+
"type": "library",
116
"authors": [
127
{
138
"name": "Sam Carré",
149
"email": "[email protected]"
1510
}
1611
],
17-
"minimum-stability": "stable",
1812
"require": {
1913
"php": "^8.1",
20-
"symfony/process": "^5.0|^6.0"
14+
"symfony/process": "^6.0 || ^7.0"
2115
},
2216
"require-dev": {
23-
"orchestra/testbench": "^7.17",
24-
"pestphp/pest": "^1.22",
2517
"friendsofphp/php-cs-fixer": "^3.13",
26-
"symfony/var-dumper": "^6.2"
18+
"orchestra/testbench": "^9.0"
19+
},
20+
"minimum-stability": "stable",
21+
"autoload": {
22+
"psr-4": {
23+
"Plannr\\Laravel\\FastRefreshDatabase\\": "src/"
24+
}
2725
},
2826
"scripts": {
29-
"post-autoload-dump": [
30-
"@php vendor/bin/testbench package:discover --ansi"
31-
],
32-
"test": [
33-
"./vendor/bin/pest"
34-
],
3527
"fix-code": [
3628
"./vendor/bin/php-cs-fixer fix"
3729
]
38-
},
39-
"config": {
40-
"allow-plugins": {
41-
"pestphp/pest-plugin": true
42-
}
4330
}
4431
}

src/Traits/FastRefreshDatabase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
namespace Plannr\Laravel\FastRefreshDatabase\Traits;
44

55
use SplFileInfo;
6+
use Illuminate\Support\Str;
67
use Symfony\Component\Finder\Finder;
78
use Symfony\Component\Process\Process;
8-
use Illuminate\Database\ConnectionInterface;
9-
use Illuminate\Support\Str;
109
use Illuminate\Contracts\Console\Kernel;
10+
use Illuminate\Database\ConnectionInterface;
1111
use Illuminate\Foundation\Testing\RefreshDatabase;
1212
use Illuminate\Foundation\Testing\RefreshDatabaseState;
1313
use Plannr\Laravel\FastRefreshDatabase\Data\FastRefreshDatabaseState;

tests/ExampleTest.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/Pest.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)