• 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

Store multiple fields in JSON column (Nova CMS)

Laravel database insert with combining array and string

mysql_result is defined but mysql_free_result warns it expected a resource

Using PHP to connect to a remote MSSQL database

Laravel MSSQL Server Connection not working

I need to link Google Sheet with my Laravel

phpunit - mockbuilder - set mock object internal property

Stop caching for PHP 5.5.3 in MAMP

Laravel Livewire: jQuery not working in child component loaded via @if statement

How to validate Envato Purchase Code in PHP

Object of class stdClass could not be converted to string error

Utf8 encoding issue with Laravel

500 (Internal Server Error) with Laravel & Docker [duplicate]

How to modify CSS in a specific page of the WP admin dashboard (backend)

How to reset Laravel AuthManager/guards in between API calls in tests?

About Contact Privacy policy Terms and conditions