PHP code example of laraorvite / eloquent-wildcard-validator

1. Go to this page and download the library: Download laraorvite/eloquent-wildcard-validator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

laraorvite / eloquent-wildcard-validator example snippets


$data = [
    'orders' => Order::with('items')->get()
];

$request->validate([
    'orders.*.items.*.price' => '