// UUID $table->uuid('file_id'); $table->foreign('file_id')->references('id')->on('files'); // MANUAL ID $table->unsignedBigInteger('user_id'); $table->foreign('user_id')->references('id')->on('users'); // $table->foreignId('user_id')->constrained();
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter