• 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

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

dompdf and img tag, image wont show

PHP function Not Working As Expected From functions.php Include File

Laravel update hasMany relationship using saveMany

auth pages not getting css in laravel

How update php.ini on a Mac OS X Mojave?

How to find phpcs current default standard

Laravel 8: Array to string conversion while calling route:list

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null

PHP array_filter with arguments

php - add comma thousands separator but remove trailing zeros

Adding hreflang tags automatically in WordPress subdirectory multisite

Class AppHttpControllersUserController Does Not Exist

I want to store data in new index as per my key in php [duplicate]

How to get total pages of PDF with FPDF?

About Contact Privacy policy Terms and conditions