Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validation required_if one parameter exist

        $request->validate([
            'daily_movement_id'=>'required_with:daily_movement',
            'daily_movement'=>'required_with:daily_movement_id',
        ]);
 
PREVIOUS NEXT
Tagged: #laravel #validation #parameter #exist
ADD COMMENT
Topic
Name
8+9 =