• 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

Handling expired token in Laravel

XML to CSV with PHP converter [problem with images grabing]

Clear javascript source cache laravel 5.8

Auto increment id JSON

echo language construct is discouraged. (PHP)

Laravel set default language not working

How to get rid of ampersand using WP Nonce URL and WP Redirect or PHP header

How to programmatically find public properties of a class from inside one of it's methods

PHP7 CLI attempts to load xdebug twice - "Cannot load Xdebug - it was already loaded"

Destroy session upon refresh

How do I pass the dynamic output of a php variable or php function to a CSS variable?

Add and update products to session cart in Laravel

how to search for a file with php

MOODLE: What does it mean to aggregate h5p assets?

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

About Contact Privacy policy Terms and conditions