⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
crm.dev-unit.com
/
app
/
Models
/
View File Name :
SalesItem.php
<?php namespace App\Models; use Barryvdh\LaravelIdeHelper\Eloquent; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Support\Carbon; /** * App\Models\SalesItem * * @property int $id * @property int $owner_id * @property string $owner_type * @property string $item * @property string|null $description * @property int $quantity * @property float $rate * @property float $total * @property string $tax_ids * @property Carbon|null $created_at * @property Carbon|null $updated_at * * @method static Builder|SalesItem newModelQuery() * @method static Builder|SalesItem newQuery() * @method static Builder|SalesItem query() * @method static Builder|SalesItem whereCreatedAt($value) * @method static Builder|SalesItem whereDescription($value) * @method static Builder|SalesItem whereId($value) * @method static Builder|SalesItem whereItem($value) * @method static Builder|SalesItem whereOwnerId($value) * @method static Builder|SalesItem whereOwnerType($value) * @method static Builder|SalesItem whereQuantity($value) * @method static Builder|SalesItem whereRate($value) * @method static Builder|SalesItem whereTaxIds($value) * @method static Builder|SalesItem whereTotal($value) * @method static Builder|SalesItem whereUpdatedAt($value) * @mixin Eloquent * * @property-read Collection|TaxRate[] $taxes * @property-read int|null $taxes_count */ class SalesItem extends Model { /** * @var string */ protected $table = 'sales_items'; /** * @var array */ protected $fillable = [ 'owner_id', 'owner_type', 'item', 'description', 'quantity', 'rate', 'total', ]; protected $casts = [ 'owner_id' => 'integer', 'owner_type' => 'string', 'item' => 'string', 'description' => 'string', 'quantity' => 'integer', 'rate' => 'double', 'total' => 'double', ]; /** * @return BelongsToMany */ public function taxes(): BelongsToMany { return $this->belongsToMany( TaxRate::class, 'sales_item_taxes', 'sales_item_id', 'tax_id' )->withTimestamps(); } }