Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit 3748882

Browse files
authored
Support for Laravel 10 (#15)
1 parent 6acdce6 commit 3748882

33 files changed

+22
-61
lines changed

.github/workflows/run-tests.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@ on: [push, pull_request]
44

55
jobs:
66
stub-tests:
7-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-22.04
88

99
strategy:
1010
fail-fast: false
1111
matrix:
1212
php: [8.2, 8.1, 8.0]
13-
laravel: [9.*]
14-
dependency-version: [prefer-lowest, prefer-stable]
13+
laravel: [10.0, 9.3]
14+
exclude:
15+
- php: 8.0
16+
laravel: 10.0
1517

16-
name: Test Stubs ${{ matrix.os }} - P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
18+
name: Test Stubs P${{ matrix.php }} - L${{ matrix.laravel }}
1719

1820
steps:
1921
- name: Setup PHP
@@ -25,17 +27,17 @@ jobs:
2527

2628
- name: Setup Laravel
2729
run: |
28-
composer create-project laravel/laravel:^9.3 .
29-
composer require protonemedia/laravel-splade-breeze
30+
composer create-project laravel/laravel:^${{ matrix.laravel }} .
31+
composer require protonemedia/laravel-splade
32+
composer require laravel/breeze
3033
31-
- name: Remove installed Breeze (Unix)
32-
run: rm -rf vendor/protonemedia/laravel-splade-breeze
33-
if: matrix.os == 'ubuntu-latest'
34+
- name: Remove installed Breeze
35+
run: rm -rf vendor/laravel/breeze
3436

3537
- name: Checkout code
3638
uses: actions/checkout@v2
3739
with:
38-
path: "vendor/protonemedia/laravel-splade-breeze"
40+
path: "vendor/laravel/breeze"
3941

4042
- name: Install Breeze and Setup Dusk environment
4143
run: |

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
],
2525
"require": {
2626
"php": "^8.0.2",
27-
"illuminate/console": "^9.37",
28-
"illuminate/filesystem": "^9.37",
29-
"illuminate/support": "^9.37",
30-
"illuminate/validation": "^9.37",
31-
"protonemedia/laravel-splade": "^1.2.9"
27+
"illuminate/console": "^9.37|^10.0",
28+
"illuminate/filesystem": "^9.37|^10.0",
29+
"illuminate/support": "^9.37|^10.0",
30+
"illuminate/validation": "^9.37|^10.0",
31+
"protonemedia/laravel-splade": "^1.2.15"
3232
},
3333
"conflict": {
3434
"laravel/framework": "<9.37.0"

src/Console/InstallCommand.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ protected function requireComposerPackages($packages, $dev = false)
170170
/**
171171
* Update the "package.json" file.
172172
*
173-
* @param callable $callback
174173
* @param bool $dev
175174
* @return void
176175
*/
@@ -261,7 +260,6 @@ protected function runCommands($commands)
261260
/**
262261
* Remove Tailwind dark classes from the given files.
263262
*
264-
* @param \Symfony\Component\Finder\Finder $finder
265263
* @return void
266264
*/
267265
protected function removeDarkClasses(Finder $finder)

src/Console/InstallsSpladeStack.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function installSpladeStack()
2525
// NPM Packages...
2626
$this->updateNodePackages(function ($packages) {
2727
return [
28-
'@protonemedia/laravel-splade' => '^1.2.9',
28+
'@protonemedia/laravel-splade' => '^1.2.15',
2929
'@tailwindcss/forms' => '^0.5.3',
3030
'@tailwindcss/typography' => '^0.5.2',
3131
'@vitejs/plugin-vue' => '^3.0.0',
@@ -104,7 +104,6 @@ protected function installSpladeStack()
104104
/**
105105
* Remove Tailwind dark classes from the given files.
106106
*
107-
* @param \Symfony\Component\Finder\Finder $finder
108107
* @return void
109108
*/
110109
protected function removeDarkClasses(Finder $finder)

stubs/api/app/Http/Controllers/Auth/AuthenticatedSessionController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class AuthenticatedSessionController extends Controller
1212
/**
1313
* Handle an incoming authentication request.
1414
*
15-
* @param \App\Http\Requests\Auth\LoginRequest $request
1615
* @return \Illuminate\Http\Response
1716
*/
1817
public function store(LoginRequest $request)
@@ -27,7 +26,6 @@ public function store(LoginRequest $request)
2726
/**
2827
* Destroy an authenticated session.
2928
*
30-
* @param \Illuminate\Http\Request $request
3129
* @return \Illuminate\Http\Response
3230
*/
3331
public function destroy(Request $request)

stubs/api/app/Http/Controllers/Auth/EmailVerificationNotificationController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class EmailVerificationNotificationController extends Controller
1111
/**
1212
* Send a new email verification notification.
1313
*
14-
* @param \Illuminate\Http\Request $request
1514
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse
1615
*/
1716
public function store(Request $request)

stubs/api/app/Http/Controllers/Auth/NewPasswordController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class NewPasswordController extends Controller
1616
/**
1717
* Handle an incoming new password request.
1818
*
19-
* @param \Illuminate\Http\Request $request
2019
* @return \Illuminate\Http\JsonResponse
2120
*
2221
* @throws \Illuminate\Validation\ValidationException

stubs/api/app/Http/Controllers/Auth/PasswordResetLinkController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class PasswordResetLinkController extends Controller
1212
/**
1313
* Handle an incoming password reset link request.
1414
*
15-
* @param \Illuminate\Http\Request $request
1615
* @return \Illuminate\Http\JsonResponse
1716
*
1817
* @throws \Illuminate\Validation\ValidationException

stubs/api/app/Http/Controllers/Auth/RegisteredUserController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class RegisteredUserController extends Controller
1515
/**
1616
* Handle an incoming registration request.
1717
*
18-
* @param \Illuminate\Http\Request $request
1918
* @return \Illuminate\Http\Response
2019
*
2120
* @throws \Illuminate\Validation\ValidationException

stubs/api/app/Http/Controllers/Auth/VerifyEmailController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class VerifyEmailController extends Controller
1212
/**
1313
* Mark the authenticated user's email address as verified.
1414
*
15-
* @param \Illuminate\Foundation\Auth\EmailVerificationRequest $request
1615
* @return \Illuminate\Http\RedirectResponse
1716
*/
1817
public function __invoke(EmailVerificationRequest $request)

0 commit comments

Comments
 (0)