Laravel model representing sales invoices with status constants, reminders, payment terms, and relationship traits.
// Source: https://github.com/bagisto/bagisto | License: MIT | Copyright 2010-2025, Webkul Software
// Provided via justclaw.it.com; keep this notice with the code.
<?php
namespace Webkul\Sales\Models;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\MorphTo;
use Webkul\Sales\Contracts\Invoice as InvoiceContract;
use Webkul\Sales\Database\Factories\InvoiceFactory;
use Webkul\Sales\Traits\InvoiceReminder;
use Webkul\Sales\Traits\PaymentTerm;
class Invoice extends Model implements InvoiceContract
{
use HasFactory, InvoiceReminder, PaymentTerm
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key