• 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

Login if user is active using Laravel Breeze

json_encode turns array into an object

Get latest Tweets - What API

Laravel with App Engine Standard Class 'FacadeIgnitionIgnitionServiceProvider' not found

curl returning 301 error after migrating to https

I want to use codeigniter foreign character library in my custom PHP project how i can use it?

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

Maatwebsite Excel 3.1 : how do I skip duplicate data when imported?

Return new collection without modifying original collection

PHP Sorting - getting 10, 11, 12 ... 1, 20, 2 rather than 1, 10, 11, 12 ... 2, 20

Insert multidimensional array to codeigniter cart

Unable to guess the mime type as no guessers are available Laravel 5.2

How to change the app environment at run time?

I need to link Google Sheet with my Laravel

PHP: Print caught exception like Xdebug

About Contact Privacy policy Terms and conditions