• 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

dockerizing Laravel + vue

Results page in other window

Insert database rows from columns of data from associative array of indexed arrays

How to read laravel_session cookies saved in cookie memory of browser in client side?

Create a new line whenever an array value reaches more than 10 characters

PHP Imap , php 7.4.3 on mac osx catalina

Toggle between a textbox and a select using PHP

Laravel display validation error

Implode columnar values between two arrays into a flat array of concatenated strings

sqlsrv_num_rows() expects parameter 1 to be resource, boolean given

woocommerce change position of price

Laravel UUID generation

Sentry + Laravel: how to log an already catched Exception?

Input and output values for php into the browser?

PHP: How to solve ob_start() in combination imagepng() issue?

About Contact Privacy policy Terms and conditions