ArtisanTinkerer.github.io

Blog

View on GitHub

Just wondering how I could seed my data better, especially for those pivot tables.

##

factory('App\User',50)->create([
  'name' => 'John Doe'
]);

Maybe 1, seed groups 2, seed users - assigned to groups

Or Maybe this should all be done in users and groups seeder.

##

Don’t bother, just TTD and use factories in the tests.