• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Laravel Nova Dependency Container what are the allowed resource properties other than id in dependsOn

phplaravelpluginslaravel-nova


PHP Snippet 1:

Text::make('Recipient')
    ->hide()
    ->dependsOn(
        ['type'], 
        function (Text $field, NovaRequest $request, FormData $formData) {
            if ($formData->type === 'gift') {
                $field->show()->rules(['required', 'email']);
            }
        }
    ),

Related Snippets

Add and update products to session cart in Laravel

PHP Slim Framework request using withAttribute error

How to pass data to all views in Laravel 5?

How to average columns of data from multiple, flat arrays?

Edit XML in HTML form and submit to self

Handling expired token in Laravel

Laravel Command Schedule Not Working Properly

How to get multiple values with same key from an array PHP

Log file is not being written in Laravel 5.5

How update php.ini on a Mac OS X Mojave?

How to properly start Laravel 8 with Bootstrap & authentication

Add a text next to stock quantity if it is less than 10 in Woocommerce single product

Laravel Gates using model and returns "Using $this when not in object context" Line 28 of AzureUser model

Attempt to read property "view" on null when sending password reset email

What is my SQL missing?

About Contact Privacy policy Terms and conditions