• 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

Converting array to string and then back in PHP

Saving Data from form to database using AngularJS and php

Pagekite error: FAIL: localhost:8080 is down

GRPC installed successfully on ubuntu but php is looking for it in another folder

Too few arguments to function PendingResourceRegistration::name(),1 passed in C:xampphtdocsproject outesweb.php on line 18 and exactly 2 expected

Put content of wordpress page inside div

How to install LDAP in Docker php-fpm alpine

Getting public posts of a random user from Facebook API

Passing PHP JSON to Javascript: echo json_encode vs echo json declaration

PHPMyAdmin not working as intended at remote server. Error 500, $respond not found

Laravel 5 issue with wherePivot

301 Redirect to remove query string on homepage only

Creating command to backup MySql database in Laravel

Invalid value in field "itemtype" in Google Search Console

Not able to override collapsible.js in magento 2

About Contact Privacy policy Terms and conditions