T
T
The Dragger2015-06-23 01:01:25
Laravel
The Dragger, 2015-06-23 01:01:25

Doesn't save data to Sleeping Owl database?

admin/User.php

<?php

Admin::model(App\User::class)->title('')->with()->filters(function ()
{

})->columns(function ()
{
    Column::string('id', 'id');
    Column::string('name', 'Имя');
    Column::string('email', 'Email');
    Column::string('role', 'роль');
})->form(function ()
{
  FormItem::text('name', 'Name');
  FormItem::text('role', 'Role');
  FormItem::text('email', 'Email');
  FormItem::password('password', 'Password');
  FormItem::text('remember_token', 'Remember Token')->attributes(['class' => 'hidden']);
});

When I edit a record, everything is saved except for the role field, although it is present in the database table. What could be the problem ? and how to store password in md5 format?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question