You are using the wrong version of PHP. The version of PHP that you are using does not support the feature of trailing commas in parameter lists when making calls. This is a feature that was added in 7.3.
The error proves this.
For Laravel 8 you need PHP >= 7.3.
solved Laravel notifications not working (composer error) [closed]