zaster
102
2
Laravel

Assign 0 to all Null values of an Array

Posted 1 month ago by zaster
        $this->validate($request, [

            'dispatch_item_qty.*' => [
                'required'      
            ],            

          ]);

I want to replace all NULL values of the dispatch_item_qty array by 0

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.