minor
This commit is contained in:
parent
2ebab64d13
commit
a8ff6a0ca9
@ -5,6 +5,7 @@
|
||||
use App\Domain\Report\ExportFormat;
|
||||
use App\Services\Export\ExportDocumentBase;
|
||||
use App\Services\Report\ReportStorage;
|
||||
use App\Services\Report\StampService;
|
||||
use CreateDocxFromTemplate;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
use App\Domain\ACL\Role;
|
||||
use App\Models\Institute;
|
||||
use App\Models\RadiologistProfile;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
@ -57,14 +58,23 @@ public function run(): void
|
||||
]);
|
||||
});
|
||||
|
||||
User::factory(8)
|
||||
$images = [
|
||||
'hossain-saad.png', 'nasir-uddin.png', 'sadrul-amin.png',
|
||||
'khairul-islam.png', 'rabeya-khatoon.png', 'subash.png',
|
||||
];
|
||||
|
||||
User::factory(9)
|
||||
->create()
|
||||
->each(function ($u, $key) {
|
||||
->each(function (User $u, $key) use ($images) {
|
||||
$u->assignRole(Role::Radiologist);
|
||||
$u->update([
|
||||
'display_name' => sprintf('Dr. %s', $u->first_name),
|
||||
'display_name' => sprintf('Dr. %s.%d', $u->first_name, $key + 1),
|
||||
'username' => sprintf('rad%d', $key + 1),
|
||||
]);
|
||||
RadiologistProfile::create([
|
||||
'user_id' => $u->id,
|
||||
'signature_image_path' => 'signatures/' . fake()->randomElement($images),
|
||||
]);
|
||||
});
|
||||
|
||||
User::factory(3)
|
||||
|
Loading…
Reference in New Issue
Block a user