'boolean', ]; public function user() { return $this->belongsTo(Restaurant::class); } function settingName() { return __eva('My Profile'); } function defaultValue() { return [ 'active' => true, 'name' => 'My Profile' ]; } public function fields() { return [ [ 'attribute' => 'active', 'stacked' => true, 'style' => 'display: inline-block; width: 20%;', 'name' => __eva('Active'), 'component' => 'boolean-field', 'type' => 'switch', 'value' => $this->active ], [ 'attribute' => 'name', 'stacked' => true, 'style' => 'display: inline-block; width: 80%;', 'name' => __eva('Internal Name'), 'component' => 'text-field', 'value' => $this->name ], ]; } public function validate() { return []; } }