• 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

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

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

Fatal error: [] operator not supported for strings

target [LaravelFortifyContractsRegisterViewResponse] is not instantiable

GuzzleHttp Hangs When Using Localhost

PHP file_get_contents function

Laravel relationship belongsToMany with composite primary keys

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

Select option menu read from database and use it's values

Cannot pass null argument when using type hinting

Laravel Displaying image from database

Limit login attempts in Laravel 5.7

woocommerce change position of price

How to pass security cloudflare server with php curl

WooCommerce Subscriptions: Remove role on cancelled subscription

About Contact Privacy policy Terms and conditions