• 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

How do I call a php file with axios?

Unable to guess the mime type as no guessers are available Laravel 5.2

WooCommerce Subscriptions: Remove role on cancelled subscription

How to connect to MSSQL Server with PHP from Ubuntu 18.04?

Clients authentication and user authentication with laravel

Substitute integers and dots with regex [duplicate]

dockerizing Laravel + vue

Laravel Nova, route not found

php echo remove slashes from url [duplicate]

loop through an anchor id

PHP web3 ERC20 token function call

Laravel-fopen: failed to open stream: Permission denied

how can I set a session variable in Drupal 8 and get it in a php script?

Symfony Make:Migration : The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue

best way to store error messages in Laravel (session or variable)

About Contact Privacy policy Terms and conditions