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.

#laravel#db#factory
factory('App\Item')->create()

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