• 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

Sync Records With Default Values in Pivot Tables, Call to undefined method syncWithPivotDefaults()

Image upload not working through ajax Laravel

Laravel 5 controller sending JSON integer as string

Laravel 8 factory state afterCreating

Is it possible to change the table name in the migration file-laravel

Laravel Factory not calling callback 'afterCreating'

php - add comma thousands separator but remove trailing zeros

PHP Startup Unable to load dynamic library /usr/lib/php/20151012/php_mysqli.dll

java URL working on browser but not in client program

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

How to set time with DateTime modify?

Can't remotely connect to MySQL error (13) with PHP script, connecting through CLI works

Populate Dynamic Dropdowns List in Codeigniter

How to read laravel_session cookies saved in cookie memory of browser in client side?

How can I make a full text index of the column?

About Contact Privacy policy Terms and conditions