• 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

PHP -> Next nearest date defined by array of days in week

Laravel 8 Multiple Relationships for Factory

How to insert Google Adsense Code in PHP script?

CSS file not imported in laravel blade view

How to get array values using foreach in laravel

Make certain characters of a word from string bold

"There is no active transaction" when refreshing database in Laravel 8.0 test

PHPExcel How to set conditional formatting to change cell background color based on cells values

Laravel Mix Uncaught ReferenceError: $ is not defined

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

MISSING UPDATES FOR: MEDIA Drupal 9

Get latest Tweets - What API

Laravel 5.5 change unauthenticated login redirect url

Vimeo API: how to save a vimeo into a subfolder?

How to pass data to all views in Laravel 5?

About Contact Privacy policy Terms and conditions