Skip to content

Commit 3351ccd

Browse files
author
vagrant
committed
fix minor bugs
1 parent 6faebf3 commit 3351ccd

33 files changed

+221
-288
lines changed

app/Http/Controllers/Admin/PostController.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ public function create()
4040
*/
4141
public function store(Request $request)
4242
{
43-
$images = [];
44-
foreach($request->file() as $image) {
45-
$image->move(public_path() . '/admin/images/posts', $image->getClientOriginalName());
46-
}
47-
48-
return $image;
49-
5043
$this->validate($request, [
5144
'title' => 'required|min:3|max:100',
5245
'description' => 'required|min:10',

app/Http/Controllers/Admin/UserController.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@ public function update(Request $request, $id)
146146
$image = ImageHelper::create($request->file, 600, 'admin/images/users/');
147147

148148
$data['image'] = $image['filename'];
149-
$data['image'] = $image->getClientOriginalName();
150-
$request->file('file')->move(public_path() . '/admin/images/users', $image->getClientOriginalName());
151-
152149
}
153150

154151
$user->update($data);
-40.3 KB
Binary file not shown.
-109 KB
Binary file not shown.
-40.3 KB
Binary file not shown.
-40.4 KB
Binary file not shown.
-109 KB
Binary file not shown.
-109 KB
Binary file not shown.
-109 KB
Binary file not shown.
-40.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)