• 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 check version of codeigniter framework?

how to get the header value, if we don't know the value because the value is random from the server

Why getting "Build step 'Execute shell' marked build as failure" error while creating a backup tar for files

Project structure for PHP

Trying to mock an http client that is inside a controller, using phpunit, but it doesn't work

Which is faster php date functions or carbon?

Cant seem to get the Pagination to work on my WooCommerce REST API application?

Yii2 select2 database exception number of bound variables does not match number of tokens

How to create laravel storage symbolic link for production or sub domain system?

How to Install Composer Require doctrine/dbal

Lexik JWT authentication problem "Invalid credentials"

Composer Script echo

phpunit - mockbuilder - set mock object internal property

Eloquent insert id with sequence next value

GRPC installed successfully on ubuntu but php is looking for it in another folder

About Contact Privacy policy Terms and conditions