• 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

Call to a member function givePermissionTo() on null

Distribute array row data to make multiple new rows

Laravel views are showing from cache on one server but works fine on other server

Remove country code from phone number?

SQLSTATE[HY000]: General error: 1 table posts has no column named *

woocommerce_wp_select options array from product attribute terms

Get WooCommerce products from specific category

PHP array, move keys and values to new array, but mix it up

Add New Parameter to Existing URL using htaccess

Doctrine 2 mapping referencing unique key

How to pass data to all views in Laravel 5?

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

Laravel implode array items to new lines

Chunk and transpose a flat array into rows with a specific number of columns

Having trouble with PDO queries (Notice: Undefined index)

About Contact Privacy policy Terms and conditions