R
R
Romi2022-04-15 19:41:48
PHP
Romi, 2022-04-15 19:41:48

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');
}


what does ... mean in this context?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Romi, 2022-04-15
@romicohen

In the comments they write that ... is not an operator, but an ordinary ellipsis, like 'some_text_here'.
Huh, maybe so.
At least I don't have a better answer :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question