Skip to content

Commit 06c75eb

Browse files
authored
Merge pull request #149 from crynobone/nova5
Supports Laravel Nova 5
2 parents 8b7ff98 + ba9f402 commit 06c75eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+14551
-6234
lines changed

.github/workflows/run-tests.yml

+9-14
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,15 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
php: [8.2, 8.1, 8.0, 7.4]
12-
laravel: [7.*, 8.*]
11+
php: [8.4, 8.3, 8.2, 8.1]
12+
laravel: [11.*, 10.*]
1313
dependency-version: [prefer-stable]
14-
include:
15-
- laravel: 8.*
16-
testbench: 6.*
17-
- laravel: 7.*
18-
testbench: 5.*
19-
exclude:
20-
- php: 8.2
21-
laravel: 7.*
22-
- php: 8.1
23-
laravel: 7.*
14+
exclude:
15+
- php: 8.1
16+
laravel: 11.*
17+
- php: 8.4
18+
laravel: 10.*
19+
2420

2521
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2622

@@ -37,8 +33,7 @@ jobs:
3733

3834
- name: Install dependencies
3935
run: |
40-
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
41-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
36+
composer update --${{ matrix.dependency-version }} --with="laravel/framework:${{ matrix.laravel }}" --prefer-dist --no-interaction --no-suggest
4237
env:
4338
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
4439

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/build
22
/vendor
33
/node_modules
4-
package-lock.json
54
composer.phar
65
composer.lock
76
phpunit.xml
87
auth.json
98
php_cs.cache
9+
.phpunit.cache/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Next up, you must register the tool with Nova. This is typically done in the `to
4444

4545
// ...
4646

47-
public function tools()
47+
public function tools(): array
4848
{
4949
return [
5050
// ...

composer.json

+25-10
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.0|^7.3",
20-
"illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0",
21-
"laravel/nova": "^4.0",
22-
"nesbot/carbon": "^2.63|^3.0",
23-
"spatie/laravel-backup": "^6.0|^7.0|^8.0|^9.0"
19+
"php": "^8.2",
20+
"illuminate/support": "^10.48.23|^11.35",
21+
"laravel/nova": "^5.0",
22+
"nesbot/carbon": "^2.62.1|^3.4",
23+
"spatie/laravel-backup": "^9.0"
2424
},
2525
"require-dev": {
26-
"orchestra/testbench": "^5.0|^6.0|^7.0",
27-
"phpunit/phpunit": "9.3",
28-
"spatie/phpunit-snapshot-assertions": "^3.0|^4.0"
26+
"laravel/nova-devtool": "^1.4",
27+
"orchestra/testbench": "^8.30|^9.7",
28+
"spatie/phpunit-snapshot-assertions": "^5.1.7"
2929
},
3030
"repositories": [
3131
{
@@ -40,7 +40,10 @@
4040
},
4141
"autoload-dev": {
4242
"psr-4": {
43-
"Spatie\\BackupTool\\Tests\\": "tests"
43+
"Spatie\\BackupTool\\Tests\\": "tests",
44+
"Workbench\\App\\": "workbench/app/",
45+
"Workbench\\Database\\Factories\\": "workbench/database/factories/",
46+
"Workbench\\Database\\Seeders\\": "workbench/database/seeders/"
4447
}
4548
},
4649
"extra": {
@@ -51,7 +54,19 @@
5154
}
5255
},
5356
"scripts": {
54-
"test": "vendor/bin/phpunit"
57+
"test": "vendor/bin/phpunit",
58+
"post-autoload-dump": [
59+
"@clear",
60+
"@prepare"
61+
],
62+
"clear": "@php vendor/bin/testbench package:purge-skeleton --ansi",
63+
"prepare": "@php vendor/bin/testbench package:discover --ansi",
64+
"build": "@php vendor/bin/testbench workbench:build --ansi",
65+
"serve": [
66+
"Composer\\Config::disableProcessTimeout",
67+
"@build",
68+
"@php vendor/bin/testbench serve --ansi"
69+
]
5570
},
5671
"config": {
5772
"sort-packages": true

dist/js/tool.js

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/tool.js.LICENSE.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

mix.js

-33
This file was deleted.

0 commit comments

Comments
 (0)