mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-11-04 05:15:39 +00:00 
			
		
		
		
	Seed some tags.
This commit is contained in:
		@@ -68,6 +68,9 @@ class TestDataSeeder extends Seeder
 | 
				
			|||||||
            // pay daily groceries:
 | 
					            // pay daily groceries:
 | 
				
			||||||
            $this->createGroceries($current);
 | 
					            $this->createGroceries($current);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            // create tag (each type of tag, for date):
 | 
				
			||||||
 | 
					            $this->createTags($current);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // go out for drinks:
 | 
					            // go out for drinks:
 | 
				
			||||||
            $this->createDrinksAndOthers($current);
 | 
					            $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'),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            ]
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user