• 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 display table header in every page using FPDF library?

how to remove white space in select 2

PHP using str_starts_with for array to exclude same as with wildcard

Unable to get password for the instance created from AMI

Unable to guess the mime type as no guessers are available Laravel 5.2

how to fix Service provider class not found when using repository?

Method IlluminateAuthRequestGuard::logout does not exist Laravel Passport

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

Get data from accuweather api url

XDebug not working in VScode for php debugging

Destroy session upon refresh

ldap is missing from system when installing adldap2 in laravel

best way to store error messages in Laravel (session or variable)

How to render html from a @foreach loop in a textarea

SQLSTATE[HY000]: General error: 1 table posts has no column named *

About Contact Privacy policy Terms and conditions