Answer the question
In order to leave comments, you need to log in
What does the expression $avatarFileName = ...; mean? from a Laravel listing?
I saw the listing in the article:
public function store(Request $request)
{
$this->validate($request, [
'email' => 'required|email',
'avatar' => 'required|image',
]);
$avatarFileName = ...;
\Storage::disk('s3')->put(
$avatarFileName, $request->file('avatar'));
$user = new User($request->except('avatar'));
$user->avatarUrl = $avatarFileName;
$user->save();
\Email::send($user, 'Hi email');
return redirect()->route('users');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question