create([ 'username' => 'kcal', 'password' => Hash::make('kcal'), 'name' => 'Admin', 'remember_token' => Str::random(10), ]); // @todo Make this more fine tuned for different macros. Goal::factory()->for($user)->count(5)->create(); Food::factory()->count(100)->create(); // @todo Create with media. Recipe::factory() ->hasIngredientAmounts(rand(2, 20)) ->hasSteps(rand(5, 20)) ->hasIngredientSeparators(rand(0, 5)) ->count(50) ->create(); JournalEntry::factory()->for($user)->count(100)->create(); } }