$this->faker->name, 'email' => $this->faker->freeEmail, 'password' => $password, 'password_confirmation' => $password, 'remember_token' => Str::random(10), 'locale' => 'en-GB', 'companies' => ['1'], 'roles' => '1', 'enabled' => $this->faker->boolean ? 1 : 0, 'created_from' => 'core::factory', ]; } /** * Indicate that the model is enabled. * * @return \Illuminate\Database\Eloquent\Factories\Factory */ public function enabled() { return $this->state([ 'enabled' => 1, ]); } /** * Indicate that the model is disabled. * * @return \Illuminate\Database\Eloquent\Factories\Factory */ public function disabled() { return $this->state([ 'enabled' => 0, ]); } }