画像
このコミットが含まれているのは:
コミット
896d951299
|
@ -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,
|
||||
];
|
||||
|
||||
|
|
新しいイシューから参照