• 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 Create WooCommerce Subscription Product via. REST API?

Add customer email and phone in "Order" column to admin orders list on Woocommerce

Laravel Sanctum CSRF not authenticating

how to hide previous markers when new markers added in google map javascript api

IlluminateDatabaseQueryException: SQLSTATE[HY000]: General error: 1 no such table - In clone project

Target Laravelista is not instantiable

Laravel 5 controller sending JSON integer as string

500 (Internal Server Error) with Laravel & Docker [duplicate]

Laravel Excel::store file empty after stored

How to get values inside <![CDATA[values]] > using php DOM?

PHPMyAdmin not working as intended at remote server. Error 500, $respond not found

How can I remove the "Advanced" panel of all blocks in WordPress block editor?

Call to undefined function openssl_decrypt

Find out the name of the last script that included the current one

Declaration of OMDb::query(string $statement) must be compatible with PDO::query

About Contact Privacy policy Terms and conditions