squareetlabs /
LaravelVerifactu
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace Squareetlabs\VeriFactu\Models; |
||
| 6 | |||
| 7 | use Illuminate\Database\Eloquent\Model; |
||
| 8 | use Illuminate\Database\Eloquent\SoftDeletes; |
||
| 9 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
||
| 10 | |||
| 11 | class Recipient extends Model |
||
| 12 | { |
||
| 13 | use HasFactory; |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 14 | use SoftDeletes; |
||
| 15 | |||
| 16 | protected static function newFactory() |
||
| 17 | { |
||
| 18 | return \Database\Factories\Squareetlabs\VeriFactu\Models\RecipientFactory::new(); |
||
| 19 | } |
||
| 20 | |||
| 21 | protected $table = 'recipients'; |
||
| 22 | |||
| 23 | protected $fillable = [ |
||
| 24 | 'invoice_id', |
||
| 25 | 'name', |
||
| 26 | 'tax_id', |
||
| 27 | 'country', |
||
| 28 | // Otros campos relevantes |
||
| 29 | ]; |
||
| 30 | |||
| 31 | public function invoice() |
||
| 32 | { |
||
| 33 | return $this->belongsTo(Invoice::class); |
||
| 34 | } |
||
| 35 | } |