title: Symfony\Component\Debug\Exception\FatalThrowableError : syntax error, unexpected 'public' (T_PUBLIC)
body: <p>Hi i had a problem <a href="https://stackoverflow.com/questions/59066075/php-artisan-migrate-does-not-migrate-all-tables">PHP artisan migrate does not migrate all tables</a> followed the procedure but i got another error.</p>
  
  <pre><code>
      λ php artisan migrate
  
         Symfony\Component\Debug\Exception\FatalThrowableError  : syntax error, unexpected 'public' (T_PUBLIC), expecting end of file
  
        at C:\laragon\www\blog\app\Providers\AppServiceProvider.php:34
          30| }
          31|
          32| use Illuminate\Support\Facades\Schema;
          33|
        &gt; 34| public function boot()
          35| {
          36|     Schema::defaultStringLength(191);
          37| }
          38|
  
        Exception trace:
  
        1   Composer\Autoload\includeFile("C:\laragon\www\blog\vendor\composer/../../app/Providers/AppServiceProvider.php")
            C:\laragon\www\blog\vendor\composer\ClassLoader.php:322
  
        2   Composer\Autoload\ClassLoader::loadClass("App\Providers\AppServiceProvider")
            [internal]:0
  
        Please use the argument -v to see more details.
  
  </code></pre>
  
  <p>AppServiceProvider.php file was changed, I even tried to put the new class on the top. And the error is the same exept it is detected on a different row. </p>
  
  <pre><code>
  
  
      &lt;?php
  
      namespace App\Providers;
  
  
  
  
  
      use Illuminate\Support\ServiceProvider;
  
      class AppServiceProvider extends ServiceProvider
      {
          /**
           * Register any application services.
           *
           * @return void
           */
          public function register()
          {
              //
          }
  
          /**
           * Bootstrap any application services.
           *
           * @return void
           */
          public function boot()
          {
              //
  
  
          }
      }
  
      use Illuminate\Support\Facades\Schema;
  
      public function boot()
      {
          Schema::defaultStringLength(191);
      }
  
  </code></pre>