From: Vincent Vanwaelscappel Date: Wed, 1 Apr 2020 16:24:52 +0000 (+0200) Subject: wip #3546 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=99709912c41bb44a2cdc333b1ed7f55369af385f;p=cubist_cms-back.git wip #3546 --- diff --git a/src/app/Magic/Models/CubistMagicAuthenticatable.php b/src/app/Magic/Models/CubistMagicAuthenticatable.php index 55debd9..c65abc1 100644 --- a/src/app/Magic/Models/CubistMagicAuthenticatable.php +++ b/src/app/Magic/Models/CubistMagicAuthenticatable.php @@ -52,7 +52,8 @@ class CubistMagicAuthenticatable extends CubistMagicAbstractModel $this->addField(['name' => 'remember_token', 'type' => 'Text', - 'hidden' => true]); + 'hidden' => true, + 'fillable' => false]); $this->addField(['name' => 'email', diff --git a/src/resources/views/fields/hidden.blade.php b/src/resources/views/fields/hidden.blade.php new file mode 100644 index 0000000..b1834db --- /dev/null +++ b/src/resources/views/fields/hidden.blade.php @@ -0,0 +1,17 @@ +@php + // if not otherwise specified, the hidden input should take up no space in the form + if (!isset($field['wrapperAttributes']) || !isset($field['wrapperAttributes']['class'])) + { + $field['wrapperAttributes']['class'] = "hidden"; + } +@endphp + + +
+ +
\ No newline at end of file