Created
May 22, 2018 18:10
-
-
Save DarkGhostHunter/ef244e68da1fc65404758c9cbcbb0d30 to your computer and use it in GitHub Desktop.
56413a512688-UnregisterController
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers | |
use App\User; | |
use App\Jobs\FarewellUser; | |
use App\Http\Controllers\Controller; | |
class UnregisterController extends Controller { | |
// ... | |
public function unregisterUser(User $user) { | |
FarewellUser::dispatch($user); | |
$user->delete(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment