Download the PHP package orlyapps/nova-belongsto-depend without Composer

On this page you can find all versions of the php package orlyapps/nova-belongsto-depend. 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 nova-belongsto-depend

BelongsTo Field with Dependency

Latest Version on Packagist Total Downloads

Sample

Using an older version of Laravel?

This version is compatible with Laravel 5.8 and newer.

If you use an older version of Laravel you can use an older version of the package. These aren't maintained anymore, but they should be pretty stable. We still accept small bugfixes.

Installation

You can install the package in to a Laravel app that uses Nova via composer:

Use this field in your Nova Resource

Method dependsOn takes the name property of the fields it depends on. Use the field's attribute value if you specified it manually.

Options

See options values from vue-multiselect

Translation

The following strings are translatable (add then in your language file located in resources/lan/vendor/nova/*.json).

If you do use nova-translatable and would like to return the translated name add this to your translatable model:

Performance Tips

When attaching this field to a resource, you may include the field relation in the $with property for that resource to prevent n+1 issues when loading an index page for that resource.

You may also choose to cache your top-level model to reduce the number of queries made to the database for each row in an index.

Sample

  1. Select a Warehouse and get all articles of the warehouse
  2. Select a Article and get all suppliers who has this article

Depend on several fields

https://user-images.githubusercontent.com/5220826/119490295-f6c9e700-bd5c-11eb-9431-92048e723201.mp4

From version 3 of this package you can depend on several fields. Just pass them comma separated in the dependsOn method.

Here an example:

  1. Select a Classification and get all Brands of the classification
  2. Select a Brand and get all Models that has this Classification and Brand

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of nova-belongsto-depend with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
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 orlyapps/nova-belongsto-depend contains the following files

Loading the files please wait ....