• 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

Why isn't my PHP exception working?

Adding reCAPTCHA v2 into my PHP file

"Unable to load dynamic library 'pdo_sqlsrv.so' "Cenos7 PHP7.2.10

php echo remove slashes from url [duplicate]

HTML + PHP + PHPMAILER

renameColumn migration fails for existing column with columns does not exist error

If you intend you use SMTP, add your SMTP Code after this Line

Lexik JWT authentication problem "Invalid credentials"

Assign output of PHP function to a variable

How to disable only_full_group_by option in Laravel

MySQL default time format UTC or GMT?

WHM Enabling mod_rewrite

curl returning 301 error after migrating to https

Change user role if checkout custom checkbox is checked in WooCommerce

PHP Discord OAUTH2 code sample not working

About Contact Privacy policy Terms and conditions