Skip to content

Commit 8947b97

Browse files
authored
17 support laravel 12 (#18)
1 parent ef66397 commit 8947b97

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

.github/workflows/run-tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ jobs:
1010
fail-fast: true
1111
matrix:
1212
os: [ubuntu-latest]
13-
php: [8.3]
13+
php: [8.3, 8.4]
1414
laravel: [11.*]
1515
stability: [prefer-stable]
1616
include:
1717
- laravel: 11.*
1818
testbench: 9.*
19-
carbon: ^2.63
2019

2120
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2221

@@ -38,7 +37,7 @@ jobs:
3837
3938
- name: Install dependencies
4039
run: |
41-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
40+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4241
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4342
4443
- name: List Installed Dependencies

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "benbjurstrom/otpz",
3-
"description": "Secure One-Time Passwords For Laravel",
3+
"description": "First Factor One-Time Passwords for Laravel (Passwordless OTP Login)",
44
"keywords": [
55
"Ben Bjurstrom",
66
"laravel",
@@ -18,16 +18,16 @@
1818
"require": {
1919
"php": "^8.2",
2020
"spatie/laravel-package-tools": "^1.16",
21-
"illuminate/contracts": "^10.0||^11.0"
21+
"illuminate/contracts": "^10.0||^11.0||^12.0"
2222
},
2323
"require-dev": {
24-
"laravel/pint": "^1.14",
25-
"nunomaduro/collision": "^8.1.1||^7.10.0",
26-
"larastan/larastan": "^2.9",
27-
"orchestra/testbench": "^9.0.0||^8.22.0",
28-
"pestphp/pest": "^2.34",
24+
"laravel/pint": "^1.21",
25+
"nunomaduro/collision": "^8.5.0||^7.10.0",
26+
"larastan/larastan": "^2.9.13",
27+
"orchestra/testbench": "^9.10.0||^8.22.0",
28+
"pestphp/pest": "^2.36",
2929
"pestphp/pest-plugin-arch": "^2.7",
30-
"pestphp/pest-plugin-laravel": "^2.3",
30+
"pestphp/pest-plugin-laravel": "^2.4",
3131
"phpstan/phpstan": "1.12.12",
3232
"phpstan/extension-installer": "1.4.3",
3333
"phpstan/phpstan-deprecation-rules": "1.2.1",

resources/views/otp.blade.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,16 @@
3434
</head>
3535

3636
<body
37-
class="{{-- dark --}}min-h-screen flex flex-col items-center justify-center bg-white antialiased dark:bg-zinc-900"
37+
class="dark min-h-screen flex flex-col items-center justify-center bg-white antialiased dark:bg-zinc-900"
3838
>
3939
<div class="flex w-full max-w-md flex-col items-center space-y-6 px-6">
4040
<div class="flex justify-center opacity-50">
4141
<a href="/" class="group flex items-center gap-3">
42-
<x-application-logo
43-
class="h-20 w-20 fill-current text-zinc-800 dark:text-zinc-400"
44-
/>
42+
@if(View::exists('components.application-logo'))
43+
<x-application-logo
44+
class="h-20 w-20 fill-current text-zinc-800 dark:text-zinc-400"
45+
/>
46+
@endif
4547
</a>
4648
</div>
4749

0 commit comments

Comments
 (0)