• 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

Symfony Make:Migration : The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue

How can i hide dt if dd got empty value

How to disable only_full_group_by option in Laravel

Unsure why I am getting: Number of variables doesn't match number of parameters in prepared statement

Sum array values

Laravel You requested 1 items, but there are only 0 items available

How to use PHPCBF to fix one issue at a time?

CONCAT columns with Laravel 5 eloquent

Unit (real unit test) of test laravel relationship

Passing PHP JSON to Javascript: echo json_encode vs echo json declaration

PHPUnit gives error: Target [IlluminateContractsViewFactory] is not instantiable

Merge key and value of array index [duplicate]

How to pass data to all views in Laravel 5?

Add a text next to stock quantity if it is less than 10 in Woocommerce single product

Not able to override collapsible.js in magento 2

About Contact Privacy policy Terms and conditions