Skip to content

Commit

Permalink
Merge pull request #19 from mostafaznv/dev
Browse files Browse the repository at this point in the history
Support Nova 5
  • Loading branch information
mostafaznv authored Dec 19, 2024
2 parents a107fe9 + 3d06b10 commit e059df5
Show file tree
Hide file tree
Showing 7 changed files with 452 additions and 354 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"php": "^8.2",
"ext-json": "*",
"laravel/framework": "^10.4.1|^11.0",
"laravel/nova": "^4.27",
"laravel/nova": "^4.27|^5.0",
"mostafaznv/larupload": "^1.0.5|^2.0.0",
"nova-kit/nova-packages-tool": "^v1.13.3"
"nova-kit/nova-packages-tool": "^v1.13.3|^v2.0.0"
},
"autoload": {
"psr-4": {
Expand Down
16 changes: 12 additions & 4 deletions dist/field.css

Large diffs are not rendered by default.

766 changes: 434 additions & 332 deletions dist/field.js

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions dist/field.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,6 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/

/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/

/**
* @license
* Copyright 2021 Google LLC
Expand Down
4 changes: 2 additions & 2 deletions dist/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/field.css": "/field.css?id=64ccfb08924daf273791e9a3d8cf95e6",
"/field.js": "/field.js?id=71d337d624d3223d9a144621fd52481c"
"/field.css": "/field.css?id=ea2f27e35b5787d2c75ac281e39fdc83",
"/field.js": "/field.js?id=31ccf433b9603595d3ad575beedc0b9d"
}
2 changes: 1 addition & 1 deletion src/Fields/NovaFileArtisan.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function ($value, $disk, $model) use ($attachment) {
}


protected function fillAttribute(NovaRequest $request, $requestAttribute, $model, $attribute)
protected function fillAttribute(NovaRequest $request, string $requestAttribute, object $model, string $attribute): mixed
{
$this->validate($request, $attribute);

Expand Down
2 changes: 1 addition & 1 deletion src/Traits/HandlesValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function updateRules(...$rules): self
/**
* @inheritDoc
*/
public function isRequired(NovaRequest $request)
public function isRequired(NovaRequest $request): bool
{
return with($this->requiredCallback, function ($callback) use ($request) {
if ($callback === true || (is_callable($callback) && call_user_func($callback, $request))) {
Expand Down

0 comments on commit e059df5

Please sign in to comment.