1. Home
  2. Laravel
  3. Factory

Run Factory class in tinker to quickly generate database records. You can create multiple records in one go by passing a number of records to create as the second factory argument.


// Create multiple records in one request
factory('App\Item', 10)->create()
Full Laravel cheatsheet