• 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 solve Duplicate entry '0' for key 'PRIMARY' in Wordpress?

How to convert binary string to normal string in php

Nginx disallowing execution of PHP in uploads directory with Magento

RabbitMQ PRECONDITION_FAILED - unknown delivery tag

Adding reCAPTCHA v2 into my PHP file

api response laravel doesn't show

Can I use a WooCommerce function without any WooCommerce page?

Correctly determine if date string is a valid date in that format

Adding custom body class to the custom archive pages

Why "Class 'GuzzleHttpClient' not found" even after Installing it in Laravel?

unable to load your default controller on Codeigniter

Is there a way to correctly use sanitize_text_field and wp_unslash that doesn't cause psalm to error with "expects string, possibly different type"

Laravel print last executed SQL query with Query log

Laravel websockets AWS EC2 - Connection failed

enable Apache http Authorization header

About Contact Privacy policy Terms and conditions