• 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

Printing more than one array using print_r or any other function in php

How to set a domain name with php artisan serve

Inserting data into SQL Server Db An Invalid direction was specified

Required field only if another field has a value, must be empty otherwise

WHERE IN array binding in DB::raw laravel 5.4

Fatal error: Uncaught Error: Call to undefined method mysqli_stmt::fetch_assoc() [duplicate]

how to prevent float variables displaying as scientific notation when printing [duplicate]

Unable to uninstall brew php from homebrew

how to loop through json response data using ajax jquery?

Convert every two values of an associative array into key-value pairs

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

backup files to google drive using PHP

send email using gmail-api and google-api-php-client

Failed user login on production server using Symfony framework (Authentication request could not be processed due to...)

Loading data from MySQL and populating dropdown select with jQuery Mobile, PHP

About Contact Privacy policy Terms and conditions