Skip to content

Commit

Permalink
Merge pull request #191 from avored/develop
Browse files Browse the repository at this point in the history
fixed the unit test
  • Loading branch information
indpurvesh authored Jan 30, 2022
2 parents d3bcbdb + 56a9248 commit b8e8245
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions database/factories/AdminUserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ public function definition()
'email' => $this->faker->email,
'password' => Hash::make('secret'),
'role_id' => $role->id,
'is_super_admin' => rand(0, 1),
'image_path' => null,
'is_super_admin' => rand(0, 1)
];
}
}
2 changes: 1 addition & 1 deletion resources/views/user/staff/_fields.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<div class="mt-3">
<x-avored::form.upload
name="image_path"
value="{{ (isset($staff) && $staff->imagePath->url) ? $staff->imagePath->url : '' }}"
value="{{ (isset($staff) && isset($staff->imagePath) && $staff->imagePath->url) ? $staff->imagePath->url : '' }}"
label="{{ __('avored::system.image_path') }}"
></x-avored::form.upload>
</div>
Expand Down

0 comments on commit b8e8245

Please sign in to comment.