65004824

Date: 2020-11-25 12:40:12
Score: 4
Natty:
Report link

For this method

$table->foreignId('user_id')->constrained();

What if the foreign key column name is not id? e.g lid, how would one rewrite it?

$table->foreignId('user_id')references->('lid')->constrained();

anything?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: rkelindungu