Download the PHP package miljoen/nova-autofill without Composer
On this page you can find all versions of the php package miljoen/nova-autofill. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package nova-autofill
nova-autofill
nova-autofill is a Laravel Nova package that allows for automatic filling of Nova FormFields.
Installation
Example usage for fresh Laravel project.
- Create a new Laravel project
- Install Nova
-
Install the package using
composer require Miljoen/nova-autofill
- Add
use AutofillTrait;
to the/app/User.php
Model. -
Implement the
filterKey()
andautofillModels()
methods.For example:
-
Add
Autofill::make('Nova Autofill', 'id')->options( \App\User::filterKey(), \App\User::autofillModels()),
to the return value of the
fields()
function in/app/Nova/User.php
- Go to the
.../nova/resources/users/new
route in your browser to test the package
The /app/User.php
model should look like this:
The /app/nova/User.php
fields() function should look like this:
All versions of nova-autofill with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.0
The package miljoen/nova-autofill contains the following files
Loading the files please wait ....