Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 14, 2020
1 parent 785dcdf commit 69f5c8d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/Http/Controllers/Inertia/ProfilePhotoController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace Laravel\Jetstream\Http\Controllers\Inertia;

use Illuminate\Http\Request;
use Illuminate\Routing\Controller;

class ProfilePhotoController extends Controller
{
/**
* Delete the current user's profile photo.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\RedirectResponse
*/
public function destroy(Request $request)
{
$request->user()->deleteProfilePhoto();

return back(303)->with('status', 'profile-photo-deleted');
}
}

0 comments on commit 69f5c8d

Please sign in to comment.