• 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 find phpcs current default standard

Install mysql client in docker image

how to see if database exists with PDO [duplicate]

How to get array values using foreach in laravel

Detect emoticons in string

Correct way to use LIKE '%{$var}%' with prepared statements?

PHP cURL (SSL certificate problem: self signed certificate in certificate chain)

Twig - How to check if variable is a number / integer

Best way to scrolldown onpageload

Loading data from MySQL and populating dropdown select with jQuery Mobile, PHP

Add 2 Webcam in one page with WebcamJS

PHP: Telegram Bot: Insert line break to text message

Create a zip file and download it

Shopify password update using Shopify API

How to create a individual template for page or post in custom plugin?

About Contact Privacy policy Terms and conditions