mirror of
https://gitlab.com/omair-personal/izyim.git
synced 2026-08-19 04:14:05 +00:00
Account - active & invite user
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
use Faker\Generator as Faker;
|
||||
|
||||
$factory->define(\App\Models\UserInvitation::class, function (Faker $faker) {
|
||||
return [
|
||||
'email' => $faker->email,
|
||||
'hash' => $faker->randomNumber(),
|
||||
'role_id' => 1,
|
||||
'sender_id' => 1,
|
||||
'is_complete' => 0
|
||||
];
|
||||
});
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class UserInvitationsTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
factory(App\Models\UserInvitation::class, 30)->create();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user