Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel required_if

        $request->validate([
            'daily_movement_id'=>'required_with:daily_movement',
            'daily_movement'=>'required_with:daily_movement_id',
        ]);
//////////////////////////////////////////////////////
        $request->validate([
            'daily_movement_id'=>'required_without:daily_movement',
            'daily_movement'=>'required_without:daily_movement_id',
        ]);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel
ADD COMMENT
Topic
Name
6+4 =