I read this post How to make function run in background in laravel, then I noticed this line.
$sendEmailJob = (new SendEmail($user))->onQueue('emails');
How did laravel call the ->onQueue
method by wrapping new SendEmail($user)
with parenthesis?
I ask this question because I don't know what exact term to search for that.