Make sure prior article is in prior month when seeding
This commit is contained in:
parent
d43530cdd2
commit
829b2c131f
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class ArticlesTableSeeder extends Seeder
|
||||||
*/
|
*/
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
$now = Carbon::now()->subMonth();
|
$now = Carbon::now()->subMonth()->subDays(5);
|
||||||
$articleFirst = Article::create([
|
$articleFirst = Article::create([
|
||||||
'title' => 'My New Blog',
|
'title' => 'My New Blog',
|
||||||
'main' => 'This is *my* new blog. It uses `Markdown`.',
|
'main' => 'This is *my* new blog. It uses `Markdown`.',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue