• 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

WordPress - Dynamically add user ID to the end of a URL

how to sort by a custom appended relation to model

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

Laravel Command Schedule Not Working Properly

(Laravel) How to delete multiple models including optional relationships?

Assets not referencing to public folder (Laravel)

Changing font color in javascript

Dynamic table in HTML using MySQL and php

Laravel set default language not working

Doctrine 2 mapping referencing unique key

Make survey at laravel 5.4 and MySQL

How to update array value in Laravel

Laravel Mix Uncaught ReferenceError: $ is not defined

Laravel dosen't connect with Oracle

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

About Contact Privacy policy Terms and conditions