• 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 display a view on laravel 8 and not have a 404 NOT FOUND page?

correct PHP headers for pdf file download

How to add a custom field to all Woocommerce attribute terms using add_action

How to check user Permissions using Custom Middleware in Laravel

Access denied for user 'homestead'@'localhost' (using password: YES)

HTML and PHP in one file

How to change HTML structure inside WP <head>

Laravel PHP: multiple project run at the same time [closed]

Must be of the type array, null given,

How to display table header in every page using FPDF library?

CodeIgniter 4: Like and Dislike Functionality

I want to store data in new index as per my key in php [duplicate]

Elastic Beanstalk with Laravel Envoy

json_encode turns array into an object

How to change 'users' auth table and use another instead Laravel

About Contact Privacy policy Terms and conditions