On my Local server everything was good was using mailtrap mail server as smtp server. but when my website is on live server and when I trying to reset password (forgot password ) getting following error screenshot is attached.I am using hostgators cpanels inbuilt smtp.
any more details I will provide if needed.
2
Answers
You need to install PHP version 7.1 because nullable types were introduced in 7.1:
And from the Laravel docs:
For php7.0 only
If your server doesn’t have php 7.1 and above and you are only restricted to use php7.0
do as below:
Add this to composer.json file under
config
As well, ensure PHP version under
require
is set to 7.0.0 as shown below inconfig.platform.php
:This now will make sure that only dependencies compatible with php7.0 are installed.