• 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

wordpress function breaks wp-admin

Applying programmatically a coupon to an Order in WooCommerce3

Yii2: How do I debug console commands?

Get latest Tweets - What API

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

Why i get wrong output for html markdown?

CSS file not imported in laravel blade view

JSON Render Issue in Date Object Laravel and PHP 7.4

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given [duplicate]

Reducing authentication calls on external API (Laravel 5.6)

How to redirect to another page after n seconds in wordpress without using javascript?

Zig-zag scan an N x N array

Override default Auth routes in Laravel 7

How do I pass the dynamic output of a php variable or php function to a CSS variable?

How to test a php login connected to a mysql db through xampp?

About Contact Privacy policy Terms and conditions