| 224 |
lars |
1 |
<?php
|
|
|
2 |
|
| 296 |
lars |
3 |
namespace App\Models;
|
| 224 |
lars |
4 |
|
| 296 |
lars |
5 |
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
6 |
use Illuminate\Database\Eloquent\Model;
|
| 224 |
lars |
7 |
|
| 415 |
lars |
8 |
/**
|
|
|
9 |
* App\Models\SupplierShipping
|
|
|
10 |
*
|
|
|
11 |
* @property int $id
|
|
|
12 |
* @property int $rank
|
|
|
13 |
* @property int|null $shipping_group_id
|
|
|
14 |
* @property int|null $supplier_id
|
|
|
15 |
* @property string $name
|
|
|
16 |
* @property string $info_shop
|
|
|
17 |
* @property string $info_mail
|
|
|
18 |
* @property string $info_internal
|
|
|
19 |
* @property int $island_shipping
|
|
|
20 |
* @property string $additions
|
|
|
21 |
* @property int $status
|
|
|
22 |
* @property float $price
|
|
|
23 |
* @property float $calc_weight_from
|
|
|
24 |
* @property float $calc_weight_to
|
|
|
25 |
* @property float $calc_price_from
|
|
|
26 |
* @property float $calc_price_to
|
|
|
27 |
* @property int $tax_rate
|
|
|
28 |
* @property string $conditions
|
|
|
29 |
* @property string $created_by
|
|
|
30 |
* @property string $updated_by
|
|
|
31 |
* @property \Illuminate\Support\Carbon|null $created_at
|
|
|
32 |
* @property \Illuminate\Support\Carbon|null $updated_at
|
|
|
33 |
* @property-read \App\Models\ShippingGroup|null $shipping_group
|
|
|
34 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping newModelQuery()
|
|
|
35 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping newQuery()
|
|
|
36 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping query()
|
|
|
37 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereAdditions($value)
|
|
|
38 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereCalcPriceFrom($value)
|
|
|
39 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereCalcPriceTo($value)
|
|
|
40 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereCalcWeightFrom($value)
|
|
|
41 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereCalcWeightTo($value)
|
|
|
42 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereConditions($value)
|
|
|
43 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereCreatedAt($value)
|
|
|
44 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereCreatedBy($value)
|
|
|
45 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereId($value)
|
|
|
46 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereInfoInternal($value)
|
|
|
47 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereInfoMail($value)
|
|
|
48 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereInfoShop($value)
|
|
|
49 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereIslandShipping($value)
|
|
|
50 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereName($value)
|
|
|
51 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping wherePrice($value)
|
|
|
52 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereRank($value)
|
|
|
53 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereShippingGroupId($value)
|
|
|
54 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereStatus($value)
|
|
|
55 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereSupplierId($value)
|
|
|
56 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereTaxRate($value)
|
|
|
57 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereUpdatedAt($value)
|
|
|
58 |
* @method static \Illuminate\Database\Eloquent\Builder|SupplierShipping whereUpdatedBy($value)
|
|
|
59 |
* @mixin \Eloquent
|
|
|
60 |
*/
|
|
|
61 |
class SupplierShipping extends Model
|
| 296 |
lars |
62 |
{
|
|
|
63 |
use HasFactory;
|
| 248 |
lars |
64 |
|
| 296 |
lars |
65 |
protected $table = "shippings";
|
|
|
66 |
|
|
|
67 |
protected $fillable = array(
|
|
|
68 |
"name",
|
|
|
69 |
"rank",
|
|
|
70 |
"shipping_group_id",
|
|
|
71 |
"supplier_id",
|
|
|
72 |
"island_shipping",
|
|
|
73 |
"price",
|
|
|
74 |
"status",
|
|
|
75 |
"calc_price_from",
|
|
|
76 |
"calc_price_to",
|
|
|
77 |
"calc_weight_from",
|
|
|
78 |
"calc_weight-to",
|
|
|
79 |
);
|
|
|
80 |
|
|
|
81 |
public function shipping_group()
|
|
|
82 |
{
|
|
|
83 |
return $this->belongsTo( ShippingGroup::class );
|
|
|
84 |
}
|
|
|
85 |
}
|