Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. $table->integer('spouse')->nullable();
  2. $table->foreign('spouse')->references('customerId')->on('customers');
  3.  
  4. public function spouse()
  5. {
  6. return $this->hasOne('AppCustomer');
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement