• 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

How to make a foreign key not using primary key

Getting output of MS stored procedure on php call

Laravel excel maatwebsite 3.1 import, date column in excel cell returns as unknown format number. How to solve this?

Sentry on Symfony: how to exclude `NotFoundHttpException`

Can I write PHP code across multiple lines per statement?

VB.NET WebRequest with PHP POST

Composer Curl error 60: SSL certificate problem: unable to get local issuer certificate

Laravel post contact form giving me error 419

Laravel SQL query midnight time not showing

Target Laravelista is not instantiable

How do I remove this delivery notification from here?

Cross-Origin Resource Sharing (CORS) witth Laravel and Vuejs

Object of class stdClass could not be converted to string error

json_encode turns array into an object

Laravel insert dynamic input values with radio button

About Contact Privacy policy Terms and conditions