Answers for "laravel update cascade"

PHP
2

how work 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

Browse Popular Code Answers by Language