• 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

Add Metadata, headers (Expires, CacheControl) to a file uploaded to Amazon S3 using the Laravel 5.0 Storage facade

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

Sync Records With Default Values in Pivot Tables, Call to undefined method syncWithPivotDefaults()

Twig - How to check if variable is a number / integer

PHP using str_starts_with for array to exclude same as with wildcard

How to programmatically find public properties of a class from inside one of it's methods

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

The sum of the user's points

MongoDB Duplicate Documents even after adding unique key

How to fix " Uncaught TypeError: Argument 1 passed to JpGraphException::defaultHandler() " problem in php 7.1.3 and jpgraph 4.2.6?

PHP SoapClient: set a namespace without prefix

Mysqli Output to a table

Laravel eloquent update record without loading from database

Laravel - How to properly generate unique slugs from article titles?

How to upload mpdf file after generating to s3 bucket in php

About Contact Privacy policy Terms and conditions