Skip to content

Commit 551cb0c

Browse files
Merge branch 'filamentphp:3.x' into 3.x
2 parents 6da69f7 + 1169857 commit 551cb0c

File tree

14 files changed

+105
-28
lines changed

14 files changed

+105
-28
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div
2-
{{ $attributes->class(['fi-fo-field-wrp-helper-text break-words text-sm text-gray-500']) }}
2+
{{ $attributes->class(['fi-fo-field-wrp-helper-text break-words text-sm text-gray-500 dark:text-gray-400']) }}
33
>
44
{{ $slot }}
55
</div>

packages/forms/resources/views/components/field-wrapper/hint.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@class([
1818
'fi-fo-field-wrp-hint-label',
1919
match ($color) {
20-
'gray' => 'text-gray-500',
20+
'gray' => 'text-gray-500 dark:text-gray-400',
2121
default => 'fi-color-custom text-custom-600 dark:text-custom-400',
2222
},
2323
is_string($color) ? "fi-color-{$color}" : null,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div
2-
{{ $attributes->class(['fi-in-entry-wrp-helper-text break-words text-sm text-gray-500']) }}
2+
{{ $attributes->class(['fi-in-entry-wrp-helper-text break-words text-sm text-gray-500 dark:text-gray-400']) }}
33
>
44
{{ $slot }}
55
</div>

packages/infolists/resources/views/components/entry-wrapper/hint.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@class([
1818
'fi-in-entry-wrp-hint-label',
1919
match ($color) {
20-
'gray' => 'text-gray-500',
20+
'gray' => 'text-gray-500 dark:text-gray-400',
2121
default => 'fi-color-custom text-custom-600 dark:text-custom-400',
2222
},
2323
is_string($color) ? "fi-color-{$color}" : null,

packages/panels/resources/lang/de/pages/auth/password-reset/request-password-reset.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
],
3232

3333
'notifications' => [
34+
'sent' => [
35+
'body' => 'Wenn Ihr Konto nicht existiert, erhalten Sie keine E-Mail.',
36+
],
3437

3538
'throttled' => [
3639
'title' => 'Zu viele Versuche.',

packages/panels/resources/lang/fa/pages/auth/register.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
'login' => [
1212
'before' => 'یا',
13-
'label' => 'وارد حساب خود شوید.',
13+
'label' => 'ورود به حساب کاربری',
1414
],
1515

1616
],

packages/panels/resources/lang/id/pages/auth/password-reset/request-password-reset.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232

3333
'notifications' => [
3434

35+
'sent' => [
36+
'body' => 'Jika akun Anda tidak ada, Anda tidak akan menerima email.',
37+
],
38+
3539
'throttled' => [
3640
'title' => 'Terlalu banyak permintaan',
3741
'body' => 'Silakan coba lagi dalam :seconds detik.',

packages/panels/resources/lang/nl/pages/auth/password-reset/request-password-reset.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232

3333
'notifications' => [
3434

35+
'sent' => [
36+
'body' => 'Als uw account niet bestaat, ontvangt u de e-mail niet.',
37+
],
38+
3539
'throttled' => [
3640
'title' => 'Te veel pogingen',
3741
'body' => 'Probeer het opnieuw over :seconds seconden.',

packages/panels/src/Pages/Auth/Register.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function register(): ?RegistrationResponse
7070
return null;
7171
}
7272

73-
$user = $this->wrapInDatabaseTransaction(function () {
73+
$user = $this->wrapInDatabaseTransaction(function (): Model {
7474
$this->callHook('beforeValidate');
7575

7676
$data = $this->form->getState();

packages/panels/src/helpers.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Illuminate\Auth\Access\AuthorizationException;
77
use Illuminate\Auth\Access\Response;
88
use Illuminate\Database\Eloquent\Model;
9+
use Illuminate\Support\Arr;
910
use Illuminate\Support\Facades\Gate;
1011

1112
if (! function_exists('Filament\authorize')) {
@@ -17,7 +18,7 @@ function authorize(string $action, Model | string $model, bool $shouldCheckPolic
1718
$user = Filament::auth()->user();
1819

1920
if (! $shouldCheckPolicyExistence) {
20-
return Gate::forUser($user)->authorize($action, $model);
21+
return Gate::forUser($user)->authorize($action, Arr::wrap($model));
2122
}
2223

2324
$policy = Gate::getPolicyFor($model);
@@ -44,6 +45,6 @@ function authorize(string $action, Model | string $model, bool $shouldCheckPolic
4445
return $response->authorize();
4546
}
4647

47-
return Gate::forUser($user)->authorize($action, $model);
48+
return Gate::forUser($user)->authorize($action, Arr::wrap($model));
4849
}
4950
}

0 commit comments

Comments
 (0)