Created
May 1, 2024 17:09
-
-
Save scramatte/9dc500d7a88175f04a39ab7bb1f3c95c to your computer and use it in GitHub Desktop.
Product Model
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 Modules\Billing\Models\Product; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\Relations\BelongsTo; | |
| class Product extends Model | |
| { | |
| protected $table = 'billing.products'; | |
| public function family(): BelongsTo { | |
| return $this->belongsTo(ProductFamily::class); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment