| 128 |
lars |
1 |
<?php
|
|
|
2 |
|
| 153 |
lars |
3 |
namespace App\Models;
|
| 128 |
lars |
4 |
|
| 153 |
lars |
5 |
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
6 |
use Illuminate\Database\Eloquent\Model;
|
| 197 |
lars |
7 |
use Illuminate\Database\Eloquent\Relations\HasMany;
|
| 128 |
lars |
8 |
|
| 415 |
lars |
9 |
/**
|
|
|
10 |
* App\Models\Supplier
|
|
|
11 |
*
|
|
|
12 |
* @property int $id
|
|
|
13 |
* @property string $name
|
|
|
14 |
* @property string $name2
|
|
|
15 |
* @property int $rank
|
|
|
16 |
* @property string $contact
|
|
|
17 |
* @property string $street
|
|
|
18 |
* @property string $houseno
|
|
|
19 |
* @property string $zip
|
|
|
20 |
* @property string $city
|
|
|
21 |
* @property int|null $country_id
|
|
|
22 |
* @property string $phone
|
|
|
23 |
* @property string $fax
|
|
|
24 |
* @property string $email
|
|
|
25 |
* @property string $customer_no
|
|
|
26 |
* @property string $shipping_hint
|
|
|
27 |
* @property string $payment_hint
|
|
|
28 |
* @property string $comment
|
|
|
29 |
* @property string $commission_text
|
|
|
30 |
* @property string $skript
|
|
|
31 |
* @property string $stock_skript
|
|
|
32 |
* @property string $interval
|
|
|
33 |
* @property string $accounts_payable
|
|
|
34 |
* @property string $ledger_account
|
|
|
35 |
* @property \Illuminate\Support\Carbon|null $created_at
|
|
|
36 |
* @property \Illuminate\Support\Carbon|null $updated_at
|
|
|
37 |
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\SupplierShipping> $shippings
|
|
|
38 |
* @property-read int|null $shippings_count
|
|
|
39 |
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\SupplierWarehouse> $supplierWarehouses
|
|
|
40 |
* @property-read int|null $supplier_warehouses_count
|
|
|
41 |
* @method static \Database\Factories\SupplierFactory factory($count = null, $state = [])
|
|
|
42 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier newModelQuery()
|
|
|
43 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier newQuery()
|
|
|
44 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier query()
|
|
|
45 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereAccountsPayable($value)
|
|
|
46 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereCity($value)
|
|
|
47 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereComment($value)
|
|
|
48 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereCommissionText($value)
|
|
|
49 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereContact($value)
|
|
|
50 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereCountryId($value)
|
|
|
51 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereCreatedAt($value)
|
|
|
52 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereCustomerNo($value)
|
|
|
53 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereEmail($value)
|
|
|
54 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereFax($value)
|
|
|
55 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereHouseno($value)
|
|
|
56 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereId($value)
|
|
|
57 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereInterval($value)
|
|
|
58 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereLedgerAccount($value)
|
|
|
59 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereName($value)
|
|
|
60 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereName2($value)
|
|
|
61 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier wherePaymentHint($value)
|
|
|
62 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier wherePhone($value)
|
|
|
63 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereRank($value)
|
|
|
64 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereShippingHint($value)
|
|
|
65 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereSkript($value)
|
|
|
66 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereStockSkript($value)
|
|
|
67 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereStreet($value)
|
|
|
68 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereUpdatedAt($value)
|
|
|
69 |
* @method static \Illuminate\Database\Eloquent\Builder|Supplier whereZip($value)
|
|
|
70 |
* @mixin \Eloquent
|
|
|
71 |
*/
|
|
|
72 |
class Supplier extends Model
|
| 153 |
lars |
73 |
{
|
|
|
74 |
use HasFactory;
|
|
|
75 |
|
|
|
76 |
protected $guarded = [
|
|
|
77 |
"id",
|
|
|
78 |
];
|
| 196 |
lars |
79 |
|
| 202 |
lars |
80 |
public function supplierWarehouses(): HasMany
|
| 196 |
lars |
81 |
{
|
|
|
82 |
return $this->hasMany( SupplierWarehouse::class );
|
|
|
83 |
}
|
| 243 |
lars |
84 |
|
|
|
85 |
public function shippings(): HasMany
|
|
|
86 |
{
|
| 248 |
lars |
87 |
return $this->hasMany( SupplierShipping::class );
|
| 243 |
lars |
88 |
}
|
| 153 |
lars |
89 |
}
|