Created
January 11, 2021 00:22
-
-
Save EricMcWinNer/e2bb894382324007470ee8e7e8d93df6 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 Company extends Model | |
{ | |
/** | |
* Get the company'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