• 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

Display Brand Name Above Product Title in Woocommerce Cart, Checkout Page, Orders and Email Notification

PHP array, move keys and values to new array, but mix it up

Symfony process run throws exception - executing on command line works

Laravel 4 Redirect::back() not going to previous page (refreshing current page)

Natural ORDER in Laravel Eloquent ORM

image source not readable

Submitting a form with ajax in Wordpress

How avoid Moved Permanently The document has moved here

PHP - CURL using HTTPS [closed]

Why do I have invalid argument supply for foreach in Laravel for json response? [duplicate]

The sum of the user's points

Maatwebsite Excel 3.1 : how do I skip duplicate data when imported?

Merge key and value of array index [duplicate]

PHP cURL (SSL certificate problem: self signed certificate in certificate chain)

codeigniter 4 running error first time with xampp

About Contact Privacy policy Terms and conditions