• 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

Laravel Delete and Update

Shopify password update using Shopify API

Failing validation doesn't stop code execution in livewire component

Toggle between a textbox and a select using PHP

Webscraping Symfony/Panther: Can't get HTML

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

VichUploaderBundle error "Expected argument of type "File", "NULL" given" when submitting the form without selecting any file

PHP code for generating decent-looking coupon codes (mix of letters and numbers)

Add and update products to session cart in Laravel

possible options to create pdf file using html elements to generate invoice in php and codeigniter

PHP each() function replacement

Sum array values of a column within each column of an array with 3 levels

Call authenticate manually in router middleware

Must be of the type array, null given,

Backend cannot be reached after Typo3 login screen

About Contact Privacy policy Terms and conditions