| 
									
										
										
										
											2021-10-31 04:29:59 +08:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-24 16:06:15 +08:00
										 |  |  | namespace Database\Factories\Users\Models; | 
					
						
							| 
									
										
										
										
											2021-10-31 04:29:59 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | use Illuminate\Database\Eloquent\Factories\Factory; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class RoleFactory extends Factory | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     /** | 
					
						
							|  |  |  |      * The name of the factory's corresponding model. | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @var string | 
					
						
							|  |  |  |      */ | 
					
						
							| 
									
										
										
										
											2023-05-18 00:56:55 +08:00
										 |  |  |     protected $model = \BookStack\Users\Models\Role::class; | 
					
						
							| 
									
										
										
										
											2021-10-31 04:29:59 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     /** | 
					
						
							|  |  |  |      * Define the model's default state. | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @return array | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     public function definition() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return [ | 
					
						
							| 
									
										
										
										
											2022-06-09 01:00:30 +08:00
										 |  |  |             'display_name'     => $this->faker->sentence(3), | 
					
						
							|  |  |  |             'description'      => $this->faker->sentence(10), | 
					
						
							| 
									
										
										
										
											2022-05-05 04:03:13 +08:00
										 |  |  |             'external_auth_id' => '', | 
					
						
							| 
									
										
										
										
											2021-10-31 04:29:59 +08:00
										 |  |  |         ]; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | } |