title: Fatal error: Uncaught RuntimeException: A facade root has not been set
body: <p>I want to create restore.php file for laravel script.
  I added restore file on public folder. and when I want to use artisan command on this file, show me this error.</p>
  
  <blockquote>
    <p>( ! ) Fatal error: Uncaught RuntimeException: A facade root has not been set. in C:\wamp64\www\myscript\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php on line 218
    ( ! ) RuntimeException: A facade root has not been set. in C:\wamp64\www\myscript\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php on line 218</p>
  </blockquote>
  
  <p>restore.php:</p>
  
  <pre><code>&lt;?php
   use Illuminate\Support\Facades\Artisan;
  
  
  include '../vendor/autoload.php';
  
  Artisan::call('migrate');
  </code></pre>
  
  <p>Note: I do not want to use Laravel controller for restore database because maybe script was down. </p>