Answers for "onupdate cascade laravel"

C#
1

onupdate cascade laravel

Schema::create('posts', function (Blueprint $table) {
    $table->increments('id');
    $table->integer('author')->unsigned();
    $table->timestamps();
    $table->foreign('author')->references('id')->on('users')->onUpdate('cascade');
});
Posted by: Guest on July-19-2021

C# Answers by Framework

Browse Popular Code Answers by Language