We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f92bda commit 1b70061Copy full SHA for 1b70061
database/migrations/create_settings_table.php.stub
@@ -16,7 +16,7 @@ return new class extends Migration
16
$table->string('name');
17
$table->json('value');
18
19
- $table->json('metadata')->default('{}');
+ $table->json('metadata');
20
21
$table->nullableMorphs('model');
22
src/NamespacedSettings.php
@@ -10,11 +10,16 @@
10
11
abstract class NamespacedSettings
12
{
13
- public function __construct()
+ final public function __construct()
14
15
$this->load();
}
+ public static function make(): static
+ {
+ return new static;
+ }
+
23
abstract public static function getNamespace(): string;
24
25
public function load(): static
0 commit comments