Question: I'm currently working on an application that interacts with OneDrive. I've read [RESTful API manual](https://dev.onedrive.com/items/sharing_createLink.htm) and the only option available is to share document.

My questions are:

* Is there any way to remove or regenerate file sharing link?
* Is there any way to specify user emails to give an access to them?
* Is there any way to control this UI option "Recipients need to sign in with Microsoft Account"?

Answer: 
you have a number of options

1) set config param on the fly in unit test

```
config(['app.url' => 'https://my.com']);

```

2) configure it in phpunit.xml file once and for all 

```
<env name="APP_URL" value="my.com"/>

```

3) change the unittest env on the fly and recreate application in your unit test

$\_ENV['APP\_URL'] = 'my.com';
 $this->refreshApplication();

4) setup the .env variable in the `public function setUp(): void` of your unit test file before the `parent::setUp();`

5) modifying your .env file is one of the options too

```
APP_URL=my.com

```
I use Forge as my production also. Everything works for me.
I have my settings like this : 

In my **config\app.php** 

I set my `'url' => env('DB_HOST'),`

**DB\_HOST** : is just the IP Address to your server.

and that should match with your `.env` file on your Production Server.

My `.env` look something like this : 

```
APP_ENV=production
APP_DEBUG=false
APP_KEY=******************

DB_HOST= http://12.23.29.122/
DB_DATABASE=db-name
DB_USERNAME=forge
DB_PASSWORD=**************

```

Hope this help !