Question: I am trying to reload the previous page from where I opened a popup (a php file) with window.open function. I was able to close the popup with self.close() function, but previous page from where I opened the popup is not auto refreshing.

```
<script type='text/javascript'>
    location.replace(document.referrer);
    self.close();
</script>

```

Answer: 
if you entered your `client_id` and `secret_id` **config/services.php** then run `php artisan config:clear`
probably you forgot to add services to you services.php
so go to config/services and add

```
'github' => [
        'client_id' => env('GITHUB_CLIENT_ID'),
        'client_secret' => env('GITHUB_CLIENT_SECRET'),
        'redirect' => env('GITHUB_REDIRECT'),
    ],
 'google' => [
        'client_id' => env('GOOGLE_CLIENT_ID'),
        'client_secret' => env('GOOGLE_CLIENT_SECRET'),
        'redirect' => env('GOOGLE_REDIRECT'),
    ]

```

after that go to env and add to your providers keys and values