• 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

Codeigniter, Severity: error --> Exception: Too few arguments to function, admin dashboard shows HTTP error 500

str_replace or preg_replace random number from string

jwt decode throws Invalid argument supplied for foreach() on php-jwt and codeignitor 4

Show Custom Data in Woocommerce Order Details Admin Area

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

Get lat/lon from google maps url ftid (hex)

Docker & Laravel : configure: error: Package requirements (oniguruma) were not met

Laravel UUID generation

How can I make Laravel return a custom error for a JSON REST API

How do I enable error reporting in Laravel?

Call authenticate manually in router middleware

Cannot connect to own websocket server when on secured domain

Laravel 8 factory state afterCreating

Could not decode a text frame as UTF-8.

Laravel You requested 1 items, but there are only 0 items available

About Contact Privacy policy Terms and conditions