このコミットが含まれているのは:
守矢諏訪子 2021-11-10 11:34:43 +09:00
コミット 896d951299
1個のファイルの変更7行の追加1行の削除

ファイルの表示

@ -124,6 +124,12 @@ KIKI承知システムを使って「聞いてない」「言ってない
}
$password = Hash::make($r->password);
$ext = explode('/', mime_content_type($r->image))[1];
$filename = uniqid() . '.'.$ext;
$image = base64_decode(substr($r->image, strpos($r->image, ',') + 1));
Storage::disk('public')->put($filename, $image);
$insert = [
'identity' => $r->identity,
'email' => $r->email,
@ -131,7 +137,7 @@ KIKI承知システムを使って「聞いてない」「言ってない
'password' => $password,
'last_name' => $r->last_name,
'first_name' => $r->first_name,
'image' => $r->image,
'image' => '/storage/'.$filename,
'company' => $r->company,
];