title: BadMethodCallException || Method Illuminate\Database\Schema\Blueprint::after does not exist
body: <p>BadMethodCallException ... Method Illuminate\Database\Schema\Blueprint::after does not exist.
  i can't migration my database for my project... this is the error i faced</p>
  <p>........................................................................</p>
  <p><strong>cmd error, (i failed to migrate):</strong></p>
  <pre><code>E:\xampp\htdocs\face_clone1&gt;php artisan migrate
  Migrating: 2021_11_19_104856_update_users_table
  
     BadMethodCallException
  
    Method Illuminate\Database\Schema\Blueprint::after does not exist.
  
    at E:\xampp\htdocs\face_clone1\vendor\laravel\framework\src\Illuminate\Support\Traits\Macroable.php:103
       99|      */
      100|     public function __call($method, $parameters)
      101|     {
      102|         if (! static::hasMacro($method)) {
    &gt; 103|             throw new BadMethodCallException(sprintf(
      104|                 'Method %s::%s does not exist.', static::class, $method
      105|             ));
      106|         }
      107|
  
    • Bad Method Call: Did you mean Illuminate\Database\Schema\Blueprint::date() ?
  
    1   E:\xampp\htdocs\face_clone1\database\migrations\2021_11_19_104856_update_users_table.php:23
        Illuminate\Database\Schema\Blueprint::__call(&quot;after&quot;)
  
    2   E:\xampp\htdocs\face_clone1\vendor\laravel\framework\src\Illuminate\Database\Schema\Blueprint.php:88
        UpdateUsersTable::{closure}(Object(Illuminate\Database\Schema\Blueprint))
  
  E:\xampp\htdocs\face_clone1&gt;
  </code></pre>
  <p><strong>My Code is Here:</strong></p>
  <pre><code>    &lt;?php
          
          use Illuminate\Database\Migrations\Migration;
   use Illuminate\Database\Schema\Blueprint;
   use Illuminate\Support\Facades\Schema;
          
          class UpdateUsersTable extends Migration {
              /**
               * Run the migrations.
               *
               * @return void
               */
              public function up()
              {
                    Schema::table('users', function (Blueprint $table){
                      $table-&gt;after('name', function ($table){
                         $table-&gt;renameColumn('name', 'fname');
                         $table-&gt;string('lname');
                         $table-&gt;boolean('sex');
                         $table-&gt;date('b_day')-&gt;default('2021-01-01');
                         $table-&gt;string('image');
                      });
                  });
              }
          
              /**
               * Reverse the migrations.
               *
               * @return void
               */
              public function down()
              {
                  //
              } 
        }
      
  </code></pre>