public function createMany(array $records, array $joinings = [])
    {
        $instances = [];

        foreach ($records as $key => $record) {
            $instances[] = $this->create($record, (array) ($joinings[$key] ?? []), false);
        }

        $this->touchIfTouching();

        return $instances;
    }
public function createMany(array $records, array $joinings = [])
    {
        $instances = [];

        foreach ($records as $key => $record) {
            $instances[] = $this->create($record, (array) ($joinings[$key] ?? []), false);
        }

        $this->touchIfTouching();

        return $instances;
    }
public function createMany ( array $ records , array $ joinings = [ ] ) { $ instances = [ ] ; foreach ( $ records as $ key => $ record ) { $ instances [ ] = $ this -> create ( $ record , ( array ) ( $ joinings [ $ key ] ?? [ ] ) , false ) ; } $ this -> touchIfTouching ( ) ; return $ instances ; }
Create an array of new instances of the related models.

@param  array  $records
@param  array  $joinings
@return array
Create an array of new instances of the related models .