Skip to content

Commit 4356cb7

Browse files
committed
Added confetti option
Signed-off-by: snipe <[email protected]>
1 parent 10dc1f1 commit 4356cb7

File tree

12 files changed

+1878
-4
lines changed

12 files changed

+1878
-4
lines changed

app/Http/Controllers/ProfileController.php

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function postIndex(ImageUploadRequest $request) : RedirectResponse
5050
$user->skin = $request->input('skin');
5151
$user->phone = $request->input('phone');
5252
$user->enable_sounds = $request->input('enable_sounds', false);
53+
$user->enable_confetti = $request->input('enable_confetti', false);
5354

5455
if (! config('app.lock_passwords')) {
5556
$user->locale = $request->input('locale', 'en-US');
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*/
12+
public function up(): void
13+
{
14+
Schema::table('users', function (Blueprint $table) {
15+
$table->boolean('enable_confetti')->default(false);
16+
});
17+
}
18+
19+
/**
20+
* Reverse the migrations.
21+
*/
22+
public function down(): void
23+
{
24+
Schema::table('users', function (Blueprint $table) {
25+
$table->dropColumn('enable_confetti');
26+
});
27+
}
28+
};

package-lock.json

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"bootstrap-datepicker": "^1.10.0",
3737
"bootstrap-less": "^3.3.8",
3838
"bootstrap-table": "1.23.0",
39+
"canvas-confetti": "^1.9.3",
3940
"chart.js": "^2.9.4",
4041
"clipboard": "^2.0.11",
4142
"css-loader": "^5.0.0",

0 commit comments

Comments
 (0)