PHPackages                             pwronline/nova-settings-translatable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pwronline/nova-settings-translatable

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pwronline/nova-settings-translatable
====================================

A Laravel Nova tool for editing custom settings using native Nova fields translatables.

06PHP

Since Nov 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/pwronline/nova-settings-translatable)[ Packagist](https://packagist.org/packages/pwronline/nova-settings-translatable)[ RSS](/packages/pwronline-nova-settings-translatable/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Nova Settings Translatable
==========================

[](#nova-settings-translatable)

This [Laravel Nova](https://nova.laravel.com) package allows you to create custom settings in code (using Nova's native fields) and creates a UI for the users where the settings can be edited.

Requirements
------------

[](#requirements)

- Laravel Nova &gt;= 2.0

Features
--------

[](#features)

- Settings fields management in code
- UI for editing settings
- Helpers for accessing settings

Screenshots
-----------

[](#screenshots)

[![Settings View](docs/index.png)](docs/index.png)

Installation
------------

[](#installation)

Install the package in a Laravel Nova project via Composer:

```
composer require optimistdigital/nova-settings
```

Publish the database migration(s) and run migrate:

```
php artisan vendor:publish --provider="OptimistDigital\NovaSettings\ToolServiceProvider" --tag="migrations"
php artisan migrate
```

Register the tool with Nova in the `tools()` method of the `NovaServiceProvider`:

```
// in app/Providers/NovaServiceProvider.php

public function tools()
{
    return [
        // ...
        new \OptimistDigital\NovaSettings\NovaSettings
    ];
}
```

Usage
-----

[](#usage)

### Registering fields

[](#registering-fields)

Define the fields in your `NovaServiceProvider`'s `boot()` function by calling `NovaSettings::setSettingsFields()`.

```
\OptimistDigital\NovaSettings\NovaSettings::setSettingsFields([
    Text::make('Some setting', 'some_setting'),
    Number::make('A number', 'a_number'),
]);
```

### Custom formatting

[](#custom-formatting)

If you want the value of the setting to be formatted before it's returned, pass a `Closure` as the second parameter to the `setSettingsFields` function. The function receives two arguments: `key` and `value`.

```
\OptimistDigital\NovaSettings\NovaSettings::setSettingsFields([
    // ... fields
], function ($key, $value) {
    if ($key === 'some_boolean_value') return boolval($value);
    return $value;
});
```

### Helper functions

[](#helper-functions)

#### nova\_get\_settings()

[](#nova_get_settings)

Call `nova_get_settings()` to get all the settings formated as a regular array.

#### nova\_get\_setting\_value($key)

[](#nova_get_setting_valuekey)

To get a single setting's value, call `nova_get_setting_value('some_setting_key')`. It will return either a value or null if the key is missing.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f60382efe163c0c5ff803b84605965ae3b0e7e2ddea3e8f0c74d3941a265079?d=identicon)[pwronline](/maintainers/pwronline)

---

Top Contributors

[![pwronline](https://avatars.githubusercontent.com/u/10486839?v=4)](https://github.com/pwronline "pwronline (6 commits)")

### Embed Badge

![Health badge](/badges/pwronline-nova-settings-translatable/health.svg)

```
[![Health](https://phpackages.com/badges/pwronline-nova-settings-translatable/health.svg)](https://phpackages.com/packages/pwronline-nova-settings-translatable)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
