• 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

Use same method for inertia response and json response Laravel Jetstream

Smarty if isset

Magento 2 - How to add new block to admin panel in product page?

How to get unique slug to same post-title for other time too?

Converting IPv6 to IPv4 address in PHP

Laravel 5 controller sending JSON integer as string

PHP returning an error message and false

How to change 'users' auth table and use another instead Laravel

If you intend you use SMTP, add your SMTP Code after this Line

Mysqli Output to a table

Sentry + Laravel: how to log an already catched Exception?

Laravel Jetsream Profile page not loading on fresh install

Trying to iterate over a mongodb cursor twice - failing

How to create a individual template for page or post in custom plugin?

How to loop a tree array with unknown depth and get array blocks?

About Contact Privacy policy Terms and conditions