• 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

Laravel Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) on a sub query with "ROW_NUMBER() OVER PARTITION"

PHP: Calling MySQL Stored Procedure with Both INPUT AND OUTPUT Parameters (NOT "INOUT")

Is there a way to use Foundry Model for Authentification inside Functional Tests?

Laravel Route issues with Route order in web.php

enroll_table three field fetch to payment form to create payment field in laravel 5.5

how to identify the web server name of remote host

Elastic Beanstalk with Laravel Envoy

Use Python plotly chart in PHP

Execute only one time and then wait set period of time before executing again

Insert a DIV after the 6th product only once in WooCommerce category archives

Adding multiple items to WooCommerce cart at once

Currently Using CodeIgniter Framework i have an Error

How should I get started using PHPUnit as a testing framework for a bunch of functions and classes I have already made?

How to submit the custom form data in database in WordPress without plugin using ajax?

Shortcode or PHP inside a shortcode in Wordpress

About Contact Privacy policy Terms and conditions