vendor and env first commit

This commit is contained in:
2025-03-28 08:52:46 +01:00
parent f8388bc81b
commit 8f26283832
10976 changed files with 1349952 additions and 2 deletions
@@ -0,0 +1,30 @@
<?php
namespace Vanguard\UserActivity\Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Vanguard\User;
use Vanguard\UserActivity\Activity;
class ActivityFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Activity::class;
/**
* Define the model's default state.
*/
public function definition(): array
{
return [
'user_id' => User::factory(),
'description' => substr($this->faker->paragraph, 0, 255),
'ip_address' => $this->faker->ipv4,
'user_agent' => $this->faker->userAgent,
];
}
}