Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim-the-Diamond authored and github-actions[bot] committed Mar 7, 2024
1 parent 493db8f commit 4fec4c8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
1 change: 0 additions & 1 deletion app/Providers/Filament/AdminPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public function panel(Panel $panel): Panel

\Leandrocfe\FilamentApexCharts\FilamentApexChartsPlugin::make(),


\Moox\User\UserPlugin::make(),

]);
Expand Down
27 changes: 14 additions & 13 deletions database/migrations/2024_03_07_111406_update_user_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,51 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
// name and email are part of Laravel's default
if (!Schema::hasColumn('users', 'slug')) {
if (! Schema::hasColumn('users', 'slug')) {
$table->string('slug')->nullable()->after('name');
}
if (!Schema::hasColumn('users', 'gender')) {
if (! Schema::hasColumn('users', 'gender')) {
$table->enum('gender', ['unknown', 'male', 'female', 'other'])->after('slug')->default('unknown');
}
if (!Schema::hasColumn('users', 'title')) {
if (! Schema::hasColumn('users', 'title')) {
$table->string('title')->nullable()->after('gender');
}
if (!Schema::hasColumn('users', 'first_name')) {
if (! Schema::hasColumn('users', 'first_name')) {
$table->string('first_name')->nullable()->after('title');
}
if (!Schema::hasColumn('users', 'last_name')) {
if (! Schema::hasColumn('users', 'last_name')) {
$table->string('last_name')->nullable()->after('first_name');
}
if (!Schema::hasColumn('users', 'website')) {
if (! Schema::hasColumn('users', 'website')) {
$table->string('website')->nullable()->after('email');
}
if (!Schema::hasColumn('users', 'description')) {
if (! Schema::hasColumn('users', 'description')) {
$table->text('description')->nullable()->after('website');
}
// `email_verified_at`, `password`, and `remember_token` are part of Laravel's default
if (!Schema::hasColumn('users', 'two_factor_secret')) {
if (! Schema::hasColumn('users', 'two_factor_secret')) {
$table->text('two_factor_secret')->nullable()->after('remember_token');
}
if (!Schema::hasColumn('users', 'two_factor_recovery_codes')) {
if (! Schema::hasColumn('users', 'two_factor_recovery_codes')) {
$table->text('two_factor_recovery_codes')->nullable()->after('two_factor_secret');
}
if (!Schema::hasColumn('users', 'two_factor_confirmed_at')) {
if (! Schema::hasColumn('users', 'two_factor_confirmed_at')) {
$table->timestamp('two_factor_confirmed_at')->nullable()->after('two_factor_recovery_codes');
}
// Skipping `current_team_id` as it's from Jetstream
if (!Schema::hasColumn('users', 'avatar_url')) {
if (! Schema::hasColumn('users', 'avatar_url')) {
$table->string('avatar_url', 2048)->nullable()->after('two_factor_confirmed_at');
}
if (!Schema::hasColumn('users', 'profile_photo_path')) {
if (! Schema::hasColumn('users', 'profile_photo_path')) {
$table->string('profile_photo_path')->nullable()->after('avatar_url');
}
});
Expand Down

0 comments on commit 4fec4c8

Please sign in to comment.