Skip to content

Instantly share code, notes, and snippets.

@rawaby88
rawaby88 / forienkey
Created Oct 29, 2017
forien key #migration
View forienkey
$table->string('appointment_id');
$table->foreign('appointment_id')->references('appointment_id')->on('appointments')->onDelete('cascade');
View modal
protected $table = '';
protected $primaryKey = '';
public $incrementing = True;
public $timestamps = True;
protected $fillable = [
You can’t perform that action at this time.