• 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 pass row id in href of a tag in codeigniter controller?

Laravel eloquent update record without loading from database

Log a user out of a website when they put their computer to sleep

How to give apache permission to write to home directory?

Laravel MSSQL Server Connection not working

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'posts.post' doesn't exist

WordPress ACFNotice: get_field() - We've detected one or more calls to retrieve ACF field values before ACF has been initialized

How to update array value in Laravel

How do I pass the dynamic output of a php variable or php function to a CSS variable?

how to remove %20 in the url in php

Laravel 5 session not persisting after user is logged in

What is PHP's equivalent of JavaScript's "array.every()"?

SendGrid: Sending an email to multiple recipients without other emails being shown on the "to" field

(Cache::lock()) -> get() -- Under what conditions does it return false?

How to set time with DateTime modify?

About Contact Privacy policy Terms and conditions