1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Fixed failing references after controller/file reshuffle

This commit is contained in:
Dan Brown
2023-05-24 09:06:15 +01:00
parent 141eecb858
commit df6326e5ab
8 changed files with 8 additions and 6 deletions

View File

@ -0,0 +1,36 @@
<?php
namespace Database\Factories\Users\Models;
use BookStack\Users\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
class UserFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = User::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
$name = $this->faker->name();
return [
'name' => $name,
'email' => $this->faker->email(),
'slug' => Str::slug($name . '-' . Str::random(5)),
'password' => Str::random(10),
'remember_token' => Str::random(10),
'email_confirmed' => 1,
];
}
}