Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: 64robots/nova-fields
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: Flagstudio/nova-fields
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Mar 1, 2024

  1. Copy the full SHA
    f9a5f15 View commit details
  2. change composer name

    Back1ng committed Mar 1, 2024
    Copy the full SHA
    1c52b3c View commit details
Showing with 3 additions and 3 deletions.
  1. +1 −1 composer.json
  2. +1 −1 src/JSON.php
  3. +1 −1 src/Row.php
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "64robots/nova-fields",
"name": "flagstudio/nova-fields",
"description": "A Laravel Nova field.",
"keywords": [
"laravel",
2 changes: 1 addition & 1 deletion src/JSON.php
Original file line number Diff line number Diff line change
@@ -196,7 +196,7 @@ public function resolveForDisplay($resource, $attribute = null)
*
* @return array
*/
public function jsonSerialize()
public function jsonSerialize(): array
{
return array_merge(parent::jsonSerialize(), [
'panelTitleClasses' => $this->panelTitleClasses,
2 changes: 1 addition & 1 deletion src/Row.php
Original file line number Diff line number Diff line change
@@ -377,7 +377,7 @@ protected function prepareFields($fields)
*
* @return array
*/
public function jsonSerialize()
public function jsonSerialize(): array
{
return array_merge(parent::jsonSerialize(), [
'sanitizedAttribute' => Str::plural(Str::kebab($this->attribute)),