Created
January 11, 2021 00:22
-
-
Save EricMcWinNer/397e75347a17f7422f7b77113e5848ac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use Illuminate\Database\Eloquent\Model; | |
class Broker extends Model | |
{ | |
/** | |
* Get the broker's wallet | |
*/ | |
public function wallet() | |
{ | |
return $this->morphOne(Wallet::class, 'walletable'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment