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