• 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

How to install LDAP in Docker php-fpm alpine

how to display a view on laravel 8 and not have a 404 NOT FOUND page?

How to get monthly wise data in laravel

How to modify CSS in a specific page of the WP admin dashboard (backend)

Adding multiple items to WooCommerce cart at once

php echo xml documents with header

Add and update products to session cart in Laravel

Laravel post contact form giving me error 419

Refresh specific HTML content that retrieves data from MySQL

error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

Sum array values

Make Shipping Method fields Mandatory on Woocommerce checkout page

How can I make Laravel return a custom error for a JSON REST API

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

Custom API and cunsuming in php?

About Contact Privacy policy Terms and conditions