-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
167 changed files
with
1,323 additions
and
1,258 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers\Admin; | ||
|
||
use App\Http\Controllers\Controller; | ||
use App\Models\MinecraftPlayerSession; | ||
use App\Models\Player; | ||
use DB; | ||
|
||
class PlayerController extends Controller | ||
{ | ||
public function destroy(Player $player) | ||
{ | ||
$this->authorize('destroy', $player); | ||
|
||
DB::transaction(function () use ($player) { | ||
MinecraftPlayerSession::where('player_uuid', $player->uuid)->delete(); | ||
$player->minecraftPlayers()->delete(); | ||
$player->delete(); | ||
}); | ||
|
||
return redirect()->back() | ||
->with(['toast' => ['type' => 'success', 'title' => __('Player Deleted!'), 'body' => __('All intel data related to the player is deleted.')]]); | ||
} | ||
} |
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
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
2 changes: 1 addition & 1 deletion
2
.../default/assets/ActionMessage-db324f18.js → .../default/assets/ActionMessage-6cf6703e.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
.../default/assets/ActionSection-5bcbcf18.js → .../default/assets/ActionSection-0ea25610.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...ld/default/assets/AdminLayout-234113da.js → ...ld/default/assets/AdminLayout-866aa674.js
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...fault/assets/AfterCreateSteps-3819ff14.js → ...fault/assets/AfterCreateSteps-005be712.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...uild/default/assets/AlertCard-504ef577.js → ...uild/default/assets/AlertCard-5d3989b9.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.