Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel required if another field has value

'last_name' => 'required_if:another_field,value'
Comment

Laravel required if it meet some value from another field

//Laravel required if it meet some value from another field

  
       'booking_type' => [
                'integer',
                'required',
            ],
            'booking_flight_description' => [
              'required_if:booking_type,==,1' // you can use multi value by using ,
            ],
Comment

PREVIOUS NEXT
Code Example
Php :: php pdo set charset 
Php :: laravel naming conventions 
Php :: How to set a comment on table using Laravel Schema 
Php :: remove special character in php 
Php :: php curl ssl certificate problem 
Php :: encryp with codeigniter 3 
Php :: laravel child relation order by desc 
Php :: valid number in excel php 
Php :: array to table php 
Php :: codeigniter set timezone 
Php :: pdo fetchall as object 
Php :: add seconds to datetime carbon 
Php :: Laravel 8: seed users + Jetstream teams 
Php :: php array order by date 
Php :: PHP str_shuffle — Randomly shuffles a string 
Php :: to stop XAMPP ubuntu 
Php :: laravel return list of ids 
Php :: php get all values from associative array 
Php :: php format int to 9 digits with preceding zeroes 
Php :: laravel remove public from url on shared host 
Php :: php artisan cache 
Php :: download speed limit php 
Php :: laravel join with multiple conditions 
Php :: upppercase php 
Php :: integer nullable laravel 
Php :: orderby text values eliquent laravel 
Php :: if value conatins in word check in php 
Php :: php current date 
Php :: php artisan route:list for specific name 
Php :: codeigniter 4 redirect to home 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =