Seed some tags.

This commit is contained in:
James Cole 2015-07-19 13:46:41 +02:00
parent f93e480466
commit fc886f6bc1

View File

@ -68,6 +68,9 @@ class TestDataSeeder extends Seeder
// pay daily groceries:
$this->createGroceries($current);
// create tag (each type of tag, for date):
$this->createTags($current);
// go out for drinks:
$this->createDrinksAndOthers($current);
@ -84,6 +87,23 @@ class TestDataSeeder extends Seeder
}
/**
* @param Carbon $date
*/
protected function createTags(Carbon $date)
{
Tag::create(
[
'user_id' => $this->user->id,
'tag' => 'SomeTag' . $date->month . '.' . $date->year . '.nothing',
'tagMode' => 'nothing',
'date' => $date->format('Y-m-d'),
]
);
}
/**
*
*/