Recently I had an error after upgrade of php version in Laravel project from 7.2…