Make sure prior article is in prior month when seeding

This commit is contained in:
Jonny Barnes 2020-12-31 13:44:57 +00:00
parent d43530cdd2
commit 829b2c131f

View file

@ -16,7 +16,7 @@ class ArticlesTableSeeder extends Seeder
*/
public function run()
{
$now = Carbon::now()->subMonth();
$now = Carbon::now()->subMonth()->subDays(5);
$articleFirst = Article::create([
'title' => 'My New Blog',
'main' => 'This is *my* new blog. It uses `Markdown`.',