mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
undoPoint
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Http\Livewire\BookCase\Form;
|
namespace App\Http\Livewire\BookCase\Form;
|
||||||
|
|
||||||
|
use App\Gamify\Points\BookCaseOrangePilled;
|
||||||
use App\Models\BookCase;
|
use App\Models\BookCase;
|
||||||
use App\Models\Country;
|
use App\Models\Country;
|
||||||
use App\Models\OrangePill;
|
use App\Models\OrangePill;
|
||||||
@@ -73,6 +74,7 @@ class OrangePillForm extends Component
|
|||||||
public function deleteMe()
|
public function deleteMe()
|
||||||
{
|
{
|
||||||
$this->orangePill->delete();
|
$this->orangePill->delete();
|
||||||
|
auth()->user()->undoPoint(new BookCaseOrangePilled(auth()->user()));
|
||||||
|
|
||||||
return redirect($this->fromUrl);
|
return redirect($this->fromUrl);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user