Add built-in screens (login, profile, menu, posts), per-user and site themes
This commit is contained in:
1 parent
4bf0a8bbb0
commit
351667abaf
46 files changed
+3720
-12
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
$users = (new (config('manager.user_model')))->getTable();
|
||||
|
||||
Schema::create(config('manager.table_prefix').'user_settings', function (Blueprint $table) use ($users) {
|
||||
$table->id();
|
||||
$table->foreignId('user_id')->unique()->constrained($users)->cascadeOnDelete();
|
||||
$table->string('theme', 60)->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists(config('manager.table_prefix').'user_settings');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user