Skip to content

Commit 05c5655

Browse files
committed
5.4.1
1 parent 7440725 commit 05c5655

13 files changed

+110
-59
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,5 @@
169169
},
170170
"minimum-stability": "dev",
171171
"prefer-stable": true,
172-
"version": "5.4.0"
172+
"version": "5.4.1"
173173
}

database/migrations/2018_01_01_000000_create_action_events_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function up()
1818
Schema::create('action_events', function (Blueprint $table) {
1919
$table->id();
2020
$table->char('batch_id', 36);
21-
$table->foreignIdFor(Util::userModel(), 'user_id')->index();
21+
$table->foreignIdFor(Util::userModelOrFallback(), 'user_id')->index();
2222
$table->string('name');
2323
$table->morphs('actionable');
2424
$table->morphs('target');

package-lock.json

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/mix-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"/app.js": "/app.js?id=2c7db6aee86bcec654c10a02f3f81021",
2+
"/app.js": "/app.js?id=3ddbff62c536804bfe9fb3e0a0157759",
33
"/ui.js": "/ui.js?id=592866a715b1c20b43fff6ca7980b279",
44
"/manifest.js": "/manifest.js?id=3267e5c99fd7b729e2f38ec55b50397d",
55
"/app.css": "/app.css?id=4ac240e9b4c482451bf95d4161751414",

public/ui.js.LICENSE.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*! #__NO_SIDE_EFFECTS__ */
2+
3+
/**
4+
* @vue/compiler-core v3.5.13
5+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
6+
* @license MIT
7+
**/
8+
9+
/**
10+
* @vue/reactivity v3.5.13
11+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
12+
* @license MIT
13+
**/
14+
15+
/**
16+
* @vue/runtime-core v3.5.13
17+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
18+
* @license MIT
19+
**/
20+
21+
/**
22+
* @vue/runtime-dom v3.5.13
23+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
24+
* @license MIT
25+
**/
26+
27+
/**
28+
* @vue/shared v3.5.13
29+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
30+
* @license MIT
31+
**/

resources/js/mixins/PerformsSearches.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
* @param {object} resource
1515
*/
1616
selectResource(resource) {
17-
this.selectedResourceId = resource.value
17+
this.selectedResourceId = resource?.value ?? null
1818

1919
if (this.field) {
2020
if (typeof this['emitFieldValueChange'] == 'function') {

src/Actions/ActionEvent.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class ActionEvent extends Model
5252
*/
5353
public function user()
5454
{
55-
return $this->belongsTo(Util::userModel(), 'user_id');
55+
return $this->belongsTo(Util::userModelOrFallback(), 'user_id');
5656
}
5757

5858
/**
@@ -62,7 +62,9 @@ public function user()
6262
*/
6363
public function target()
6464
{
65-
$queryWithTrashed = static fn ($query) => $query->withTrashed();
65+
$queryWithTrashed = static function ($query) {
66+
return $query->withTrashed();
67+
};
6668

6769
return $this->morphTo('target', 'target_type', 'target_id')
6870
->constrain(

src/Http/Controllers/ImpersonateController.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ public function startImpersonating(NovaRequest $request, ImpersonatesUsers $impe
2222
}
2323

2424
/** @var class-string<\Illuminate\Contracts\Auth\Authenticatable&\Illuminate\Database\Eloquent\Model> $userModel */
25-
$userModel = with(Nova::modelInstanceForKey($request->input('resource')), static function ($model) {
26-
return ! \is_null($model) ? $model::class : Util::userModel();
27-
});
25+
$userModel = with(
26+
Nova::modelInstanceForKey($request->input('resource')),
27+
static fn ($model) => ! \is_null($model) ? $model::class : Util::userModel()
28+
);
2829

2930
$authGuard = Util::sessionAuthGuardForModel($userModel);
3031

src/Nova.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ protected static function defaultCreateUserCommandCallback(): callable
598598
protected static function defaultCreateUserCallback(): Closure
599599
{
600600
return function ($name, $email, $password) {
601-
$model = Util::userModel();
601+
$model = Util::userModelOrFallback();
602602

603603
return tap((new $model)->forceFill([
604604
'name' => $name,

0 commit comments

Comments
 (0)