| 
									
										
										
										
											2021-10-31 04:29:59 +08:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-24 16:06:15 +08:00
										 |  |  | namespace Database\Factories\Activity\Models; | 
					
						
							| 
									
										
										
										
											2021-10-31 04:29:59 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | use Illuminate\Database\Eloquent\Factories\Factory; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class CommentFactory extends Factory | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     /** | 
					
						
							|  |  |  |      * The name of the factory's corresponding model. | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @var string | 
					
						
							|  |  |  |      */ | 
					
						
							| 
									
										
										
										
											2023-05-18 00:56:55 +08:00
										 |  |  |     protected $model = \BookStack\Activity\Models\Comment::class; | 
					
						
							| 
									
										
										
										
											2021-10-31 04:29:59 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     /** | 
					
						
							|  |  |  |      * Define the model's default state. | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @return array | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     public function definition() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         $text = $this->faker->paragraph(1); | 
					
						
							|  |  |  |         $html = '<p>' . $text . '</p>'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         return [ | 
					
						
							|  |  |  |             'html'      => $html, | 
					
						
							|  |  |  |             'parent_id' => null, | 
					
						
							| 
									
										
										
										
											2024-01-31 22:22:04 +08:00
										 |  |  |             'local_id'  => 1, | 
					
						
							| 
									
										
										
										
											2021-10-31 04:29:59 +08:00
										 |  |  |         ]; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | } |