Skip to content

Commit 69f5c8d

Browse files
committed
formatting
1 parent 785dcdf commit 69f5c8d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace Laravel\Jetstream\Http\Controllers\Inertia;
4+
5+
use Illuminate\Http\Request;
6+
use Illuminate\Routing\Controller;
7+
8+
class ProfilePhotoController extends Controller
9+
{
10+
/**
11+
* Delete the current user's profile photo.
12+
*
13+
* @param \Illuminate\Http\Request $request
14+
* @return \Illuminate\Http\RedirectResponse
15+
*/
16+
public function destroy(Request $request)
17+
{
18+
$request->user()->deleteProfilePhoto();
19+
20+
return back(303)->with('status', 'profile-photo-deleted');
21+
}
22+
}

0 commit comments

Comments
 (0)