Download the PHP package lupennat/nested-form without Composer

On this page you can find all versions of the php package lupennat/nested-form. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nested-form

this repository will no longer have updates, a new version of the package is available here

  1. Requirements
  2. Installation
  3. Usage
  4. DependsOn
  5. Additional options
    1. Prefill
    2. Custom Heading
  6. Credits

Requirements

Installation

Usage

Simply add a NestedForm into your fields. The first parameter must be an existing NovaResource class and the second parameter (optional) must be an existing HasOneOrMany relationship in your model.

NestedForm is visible by deafult on DetailPage, UpdatePage and CreatePage. NestedForm is not available on IndexPage.

Depends On

NestedForm support Nova dependsOn.

it also support a short version of dependsOn without callback

Both syntax will propagate the condition to related resource, you can access propagated content adding HasNestedForm trait on your related resource.

Additional options

function description default
->max(int) limit number of related resources allowed 0
->min(int) minimum number of related resources 0
->lock() disable add and remove related resources false
->prefill(array,bool) prefill related resources with values [], false
->useTabs() switch display mode to tabs instead of panels false
->activeTab(int) set default active tab by index 0
->activeTabByHeading(string) set default active tab by 'heading' null
->canDuplicate() enable duplicate resource button false
->canRestore() enable soft delete on resource when deleted (only vue) false
->addText(string) text for add button "add $resourceName"
->restoreText(string) text for restore button "restore $resourceName"
->removeText(string) text for remove button "remove $resourceName"
->duplicateText(string) text for duplicate button "duplicate $resourceName"
->heading(string, boolean) define custom heading [], false
->separator(string) define heading separator " . "

Prefill

You can use prefill method to generate a default set of related resource.

Prefill works only on Create Page

You can force prefill to always respect the numbers of prefilled items through a second boolean parameter.

Custom Heading

By Default NestedForm Heading is:

You can specify a Custom Heading using resource fields value, defining attribute names, through heading method, the second parameter of the method specify if the heading should be "unique".

When a custom heading is defined, the fields are hidden on the panel, but when the user try to add a new resource a modal with required fields is displayed; if unique is true, NestedForm will check to existing related resource the uniqueness of the fields. Multiple fields value will be concatened by the defined separator.


Credits

NestedForm field is based on original Nova Nested Form.


All versions of nested-form with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
laravel/nova Version ^4.12
nova-kit/nova-packages-tool Version ^1.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lupennat/nested-form contains the following files

Loading the files please wait ....