I\'ve these two database tables:
User Tables will handle this kind of informations
For Laravel 7.x I use this way:
$table->bigInteger('word_type_id')->nullable()->unsigned(); $table->index('word_type_id')->nullable(); $table->foreign('word_type_id')->nullable()->references('id')->on('word_types')->onDelete('cascade');