mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 03:56:52 +01:00 
			
		
		
		
	Co-authored-by: Lance Pioch <git@lance.sh> Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com>
		
			
				
	
	
		
			23 lines
		
	
	
		
			478 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			478 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Database\Factories;
 | 
						|
 | 
						|
use App\Models\Role;
 | 
						|
use Illuminate\Database\Eloquent\Factories\Factory;
 | 
						|
use Illuminate\Support\Carbon;
 | 
						|
 | 
						|
class RoleFactory extends Factory
 | 
						|
{
 | 
						|
    protected $model = Role::class;
 | 
						|
 | 
						|
    public function definition(): array
 | 
						|
    {
 | 
						|
        return [
 | 
						|
            'name' => $this->faker->name(),
 | 
						|
            'guard_name' => $this->faker->name(),
 | 
						|
            'created_at' => Carbon::now(),
 | 
						|
            'updated_at' => Carbon::now(),
 | 
						|
        ];
 | 
						|
    }
 | 
						|
}
 |