Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 399 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 399 Revision 621
Zeile 363... Zeile 363...
363
 
363
 
364
        return $instances;
364
        return $instances;
Zeile 365... Zeile 365...
365
    }
365
    }
-
 
366
 
-
 
367
    /**
-
 
368
     * Create a Collection of new instances of the related model without raising any events to the parent model.
-
 
369
     *
-
 
370
     * @param  iterable  $records
-
 
371
     * @return \Illuminate\Database\Eloquent\Collection
-
 
372
     */
-
 
373
    public function createManyQuietly(iterable $records)
-
 
374
    {
-
 
375
        return Model::withoutEvents(fn () => $this->createMany($records));
-
 
376
    }
366
 
377
 
367
    /**
378
    /**
368
     * Set the foreign ID for creating a related model.
379
     * Set the foreign ID for creating a related model.
369
     *
380
     *
370
     * @param  \Illuminate\Database\Eloquent\Model  $model
381
     * @param  \Illuminate\Database\Eloquent\Model  $model