• 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

Stop caching for PHP 5.5.3 in MAMP

Log file is not being written in Laravel 5.5

Detect if PHP session exists

Pagekite error: FAIL: localhost:8080 is down

Cannot connect to own websocket server when on secured domain

Confirm Leave on External Links in Wordpress

How to Mock the Request Class in Laravel?

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

How to add a sidebar to Woocommerce Shop Page?

java URL working on browser but not in client program

Composer Curl error 60: SSL certificate problem: unable to get local issuer certificate

Accessors (Getter) & Mutators (Setter) On a Pivot Table in Laravel

Target Laravelista is not instantiable

Remove product downloads section in woocommerce email notifications

ORA-12546: TNS:permission denied error connection to remote oracle server

About Contact Privacy policy Terms and conditions