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: 
If your website will be not installed on other domain, then you can assign it via config file directly:

```
'url' => 'http://localhost',

```

If your application will be installed/ran in different enviroments or domain you can set it via .env file:

```
# .env file
APP_URL=http://localhost

```
I also face this problem, It's solved for me.

```
1.SET UR APP_URL= yourdomain.com

2.run php artisan config:cache

3.php artisan queue:restart

```

You may write a route for those commands at the live server.

Code at web.php

```
use Illuminate\Support\Facades\Artisan;
Route::get("reboot",function (){
    Artisan::call('config:cache');
    Artisan::call('queue:restart');
    dd("Ready to Re-start");
});

```