• 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

Error Class "LaravelFortifyFeatures" not found

Laravel Multi-language routes without prefix

PHP -> Next nearest date defined by array of days in week

possible options to create pdf file using html elements to generate invoice in php and codeigniter

image source not readable

Can I write PHP code across multiple lines per statement?

Respond with status code 401 on authentication failure using Laravel and Passport?

SQL to convert multiple rows into a single row of variable length

getting error while enter Command => php artisan route:list

PHPExcel_IOFactory::createWriter causes wrong behaviour

Populate Dynamic Dropdowns List in Codeigniter

Class AppHttpControllersUserController Does Not Exist

merging two arrays with specified index

RabbitMQ PRECONDITION_FAILED - unknown delivery tag

How to put php code inside opening and closing shortcodes

About Contact Privacy policy Terms and conditions