Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $table->integer('spouse')->nullable();
- $table->foreign('spouse')->references('customerId')->on('customers');
- public function spouse()
- {
- return $this->hasOne('AppCustomer');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement