Add Notes to Users (#1406)

* Fix migration

Add Notes

* Migration to add mediumtext field
* Model update
* Admin blade update

* Hide notes by default

* Fix fields layout
This commit is contained in:
B.Fatih KOZ
2022-02-11 23:58:16 +03:00
committed by GitHub
parent 9e080d544a
commit 607ea6f5e5
3 changed files with 33 additions and 24 deletions

View File

@@ -0,0 +1,15 @@
<?php
use App\Contracts\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdateUsersAddNotes extends Migration
{
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->mediumText('notes')->nullable()->after('remember_token');
});
}
}

View File

@@ -88,6 +88,7 @@ class User extends Authenticatable
'toc_accepted',
'opt_in',
'last_ip',
'notes',
'created_at',
'updated_at',
];
@@ -104,6 +105,7 @@ class User extends Authenticatable
'password',
'last_ip',
'remember_token',
'notes',
];
protected $casts = [