Just use $table->foreignId('category_id')->references('id')->on('categories');
$table->foreignId('category_id')->references('id')->on('categories');