PHPackages                             edrisa/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. edrisa/onchange-load-dependant-field-data

ActiveLibrary[Admin Panels](/categories/admin)

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

Backpack Fields

v1.0.4(3y ago)11.0kMITPHP

Since Oct 12Pushed 2y agoCompare

[ Source](https://github.com/edrisaturay/laravel-backpack-select-onchange-load-dependant-field-data)[ Packagist](https://packagist.org/packages/edrisa/onchange-load-dependant-field-data)[ Docs](https://github.com/edrusaturay)[ RSS](/packages/edrisa-onchange-load-dependant-field-data/feed)WikiDiscussions master Synced 1mo ago

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

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

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

[!\[Latest Version on Packagist\]\[ico-version\]](https://packagist.org/packages/ogroosoft/onchange-load-dependant-field-data)[!\[Total Downloads\]\[ico-downloads\]](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 edrisa/onchange-load-dependant-field-data
```

Usage
-----

[](#usage)

Inside your CrudController:

```
CRUD::addField([
       'view_namespace' => 'edrisa-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 edrisa/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)

Updated By: [Edrisa Turay](https://github.com/edrisaturay)

 \[ico-version\]: \[ico-downloads\]:

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.7% 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 ~76 days

Total

3

Last Release

1155d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/95329b757401f7d19594b60cf196fef575ef365863207549dd320a28d03172e7?d=identicon)[edrisaa.turay](/maintainers/edrisaa.turay)

---

Top Contributors

[![edrisaturay](https://avatars.githubusercontent.com/u/21174548?v=4)](https://github.com/edrisaturay "edrisaturay (15 commits)")[![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/edrisa-onchange-load-dependant-field-data/health.svg)

```
[![Health](https://phpackages.com/badges/edrisa-onchange-load-dependant-field-data/health.svg)](https://phpackages.com/packages/edrisa-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)
