79122639

Date: 2024-10-24 15:27:59
Score: 2.5
Natty:
Report link

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

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Denis Lopatin