PHPackages                             ogroosoft/onchange-load-dependant-field-data - 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. [Admin Panels](/categories/admin)
4. /
5. ogroosoft/onchange-load-dependant-field-data

ActiveLibrary[Admin Panels](/categories/admin)

ogroosoft/onchange-load-dependant-field-data
============================================

Backpack Fields

1.0.1(4y ago)101084MITBlade

Since Aug 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/OgrooSoft/onchange-load-dependant-field-data)[ Packagist](https://packagist.org/packages/ogroosoft/onchange-load-dependant-field-data)[ Docs](https://github.com/ogroosoft)[ RSS](/packages/ogroosoft-onchange-load-dependant-field-data/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Backpack Fields: Onchange load dependant field options/data
===========================================================

[](#backpack-fields-onchange-load-dependant-field-optionsdata)

[![Latest Version on Packagist](https://camo.githubusercontent.com/79fb6a17658b5275d10c6a07e05de0ffb531cf4d1ff34ff3d9da2caf20fd83ef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f67726f6f736f66742f6f6e6368616e67652d6c6f61642d646570656e64616e742d6669656c642d646174612e737667)](https://packagist.org/packages/ogroosoft/onchange-load-dependant-field-data)[![Total Downloads](https://camo.githubusercontent.com/21bfc2a5144e7829ec587217126061226dd47e18437ba7365679e4b21e90df21/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f67726f6f736f66742f6f6e6368616e67652d6c6f61642d646570656e64616e742d6669656c642d646174612e737667)](https://packagist.org/packages/ogroosoft/onchange-load-dependant-field-data)

This package provides a `dependantFieldOptions` field type for the [Backpack for Laravel](https://backpackforlaravel.com/) administration panel. The `dependantFieldOptions` field allows admins to load options from provided `source` through provided `method` depending on-change in parent/specefic field.

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

[](#screenshots)

[![Backpack Star Field Addon](https://camo.githubusercontent.com/11e187337b6fe431e4f2c1e95be50ec3b8096bd8ebdce8484a144fa042220297/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f6f67726f6f736f66742f696d6167652f75706c6f61642f76313632393438333436322f73637265656e73686f74732f7561706d3078636c6739786f72786a61677439622e676966)](https://camo.githubusercontent.com/11e187337b6fe431e4f2c1e95be50ec3b8096bd8ebdce8484a144fa042220297/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f6f67726f6f736f66742f696d6167652f75706c6f61642f76313632393438333436322f73637265656e73686f74732f7561706d3078636c6739786f72786a61677439622e676966)

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

[](#installation)

Via Composer

```
composer require ogroosoft/onchange-load-dependant-field-data
```

Usage
-----

[](#usage)

Inside your CrudController:

```
CRUD::addField([
       'view_namespace' => 'ogroosoft-onchange-field-options::fields',
       'type' => "dependantFieldOptions",
       'dependency_name' => 'surah_id', // write (parent/specefic) field name, when the field's value will change then load this field options
       'label' => "Verse",
       'name' => 'verse_id',
       'source' => route('surah.verses'),
       'attribute' => 'verse_no', // option's key name for showing option label
      // 'source_method' => 'post', //  by default post
      // 'id' => 'field_id',
      // 'placeholder' => 'placeholder', // by default "-"
      // 'hint' => 'hint',
  ]);
```

Uninstall
---------

[](#uninstall)

```
composer remove ogroosoft/onchange-load-dependant-field-data
```

Security
--------

[](#security)

If you discover any security related issues, please email [the author](composer.json) instead of using the issue tracker.

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

Developed by : [AL EMRAN](https://github.com/emrancu)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% 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.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

1725d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1bc29c6227fdfa1f1980c440796e0aa8f249c549be4a75c772c2c67102f5ae4b?d=identicon)[alemran](/maintainers/alemran)

---

Top Contributors

[![emrancu](https://avatars.githubusercontent.com/u/11002290?v=4)](https://github.com/emrancu "emrancu (9 commits)")[![alemran-xs](https://avatars.githubusercontent.com/u/83762623?v=4)](https://github.com/alemran-xs "alemran-xs (2 commits)")

---

Tags

laraveladdonadmin-panelbackpackBackpack for LaravelOnchange Load Dependant Field Data

### Embed Badge

![Health badge](/badges/ogroosoft-onchange-load-dependant-field-data/health.svg)

```
[![Health](https://phpackages.com/badges/ogroosoft-onchange-load-dependant-field-data/health.svg)](https://phpackages.com/packages/ogroosoft-onchange-load-dependant-field-data)
```

###  Alternatives

[ziming/json-field-for-backpack

A Json Editor Field for Backpack

3597.3k](/packages/ziming-json-field-for-backpack)[izica/relations-widgets-for-backpack

Widgets for preview model relations in laravel backpack

2927.3k](/packages/izica-relations-widgets-for-backpack)[digitallyhappy/toggle-field-for-backpack

Easily toggle boolean attributes with a new field type.

2138.4k](/packages/digitallyhappy-toggle-field-for-backpack)[backpack/revise-operation

Backpack interface for venturecraft/revisionable

43279.9k1](/packages/backpack-revise-operation)[backpack/pagemanager

Create admin panels for presentation websites on Laravel, using page templates and Backpack\\CRUD.

371522.6k6](/packages/backpack-pagemanager)[backpack/backupmanager

Admin interface for managing backups in Backpack, on Laravel 5.2+

340375.9k2](/packages/backpack-backupmanager)

PHPackages © 2026

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