Julian Prieber 2023-09-20 13:35:48 +02:00
parent 406cd4edb0
commit be4228cd1c
1 changed files with 3 additions and 0 deletions

View File

@ -959,6 +959,9 @@ class UserController extends Controller
$id = $request->id;
if($id == Auth::id() and $id != "1") {
Link::where('user_id', $id)->delete();
$user = User::find($id);
Schema::disableForeignKeyConstraints();