Skip to content

Commit

Permalink
Update OfficeController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmygoodR authored Sep 14, 2024
1 parent 263fac3 commit 9cf0d6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Http/Controllers/OfficeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public function store(Request $request)
// TASK: Upload the file "photo" so it would be written as
// storage/app/public/offices/[original_filename]

$request->file('photo')->storeAs('offices',$filename,'public');

Office::create([
'name' => $request->name,
'photo' => $filename,
Expand Down

0 comments on commit 9cf0d6f

Please sign in to comment.