• 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

Adding reCAPTCHA v2 into my PHP file

Woocommerce Edit Message "An account is already registered with your email address. Please log in."

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

Need to display only array value in JSON output

array_key_exists(): The first argument should be either a string or an integer

Login if user is active using Laravel Breeze

PhP how to calculate moments with variables rows

Laravel Collections. Is there some kind of assertStructure method?

How to install LDAP in Docker php-fpm alpine

WooCommerce Subscriptions: Remove role on cancelled subscription

Wordpress add responsive srcset header image to theme

I cannot create a auto generated date time in mysql workbench

Exception thrown during the rendering of a template("Parameter "id" for route "url" must match "[^/]++" ("" given) to generate a corresponding URL.")

Issue with laravel eloquent model property

How in Laravel run JavaScript code stored in php variable?

About Contact Privacy policy Terms and conditions