Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

foreign key string laravel

Schema::table('portfolios', function (Blueprint $table) {
            $table->string('filter_alias');
            $table->foreign('filter_alias')->cascadeOnDelete()->references('alias')->on('filters');
        });
Source by github.com #
 
PREVIOUS NEXT
Tagged: #foreign #key #string #laravel
ADD COMMENT
Topic
Name
5+9 =