📜  外键字符串 laravel - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:04.155000             🧑  作者: Mango

代码示例5
Schema::table('portfolios', function (Blueprint $table) {
            $table->string('filter_alias');
            $table->foreign('filter_alias')->cascadeOnDelete()->references('alias')->on('filters');
        });