を挿入し得ることができない私は、移行は、タイムスタンプ値は、私のデータベーステーブルに
Schema::create('users',function(Blueprint $table){
$table->increments('user_id');
$table->string('username',100);
$table->string('password',300);
$table->string('full_name',100);
$table->string('email',100);
$table->timestamp('joined');
});
を使用して作成したが、私は、ユーザーを挿入しようとした時はいつでも私のデータベース「ユーザー」テーブルに「参加」という列を持っています列が見つかりません:: の 'フィールドリスト' 'updated_atの' 1054未知の列(SQL:users
(username
、password
、 full_name
に挿入、0123私のテーブルには、私は次のエラー
SQLSTATE [42S22]を取得します、
joined
、updated_at
、created_at
) (alzami、Y $ ckR7d.Pt05QRNZXXRGkoOuWDTZAxtDiQ0XA4O2UktSuBd244Oc3qe、アル zamiラーマン、[email protected]、20-03-16 10-37-11、2016年3月20日 10値:37:11、2016年3月20日午前10時37分11秒))私のUserControllerで中
私は
$user=new User();
$user->username=$request->username;
$user->password=bcrypt($request->password);
$user->full_name=$request->full_name;
$user->email=$request->email;
$user->joined=date('d-m-y H-i-s');
$user->save();
ありがとう:) –