• 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 make Canonicals with PHP

dockerizing Laravel + vue

JSON Render Issue in Date Object Laravel and PHP 7.4

Laravel passport auth token not working after moving to different server

php - add comma thousands separator but remove trailing zeros

Merge key and value of array index [duplicate]

Laravel with App Engine Standard Class 'FacadeIgnitionIgnitionServiceProvider' not found

How to use React Router with Laravel?

Unit (real unit test) of test laravel relationship

How to make a array inside array?

Natural ORDER in Laravel Eloquent ORM

How to install ZeroMQ for PHP on an Alpine Linux container?

How to disable only_full_group_by option in Laravel

browsersync doesn't work with XAMPP

How to fix bootstrap multiselect search data using ajax

About Contact Privacy policy Terms and conditions