• 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 to check user Permissions using Custom Middleware in Laravel

Symfony there are no commands defined in the "make" namespace

How to change 'users' auth table and use another instead Laravel

PHP, how to convert Int value to Week days

Maatwebsite Excel 3.1 : how do I skip duplicate data when imported?

protect images from being copied

Fatal error: Array callback has to contain indices 0 and 1

laravel MVC execution flow

Normalize DateInterval in PHP

Issue saving card for customer

How to load Codeigniter 4 lang file into an array variable

wp_remote_get() not passing authentication

Limit WooCommerce products in cart only from one custom taxonomy

Laravel - Implicit route model binding with soft deleted data

php retrieve specific data onclick from database in a list format

About Contact Privacy policy Terms and conditions