mirror of https://github.com/4xmen/xshop.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
PHP
35 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* App\Models\Price
|
|
*
|
|
* @property int $id
|
|
* @property int $price
|
|
* @property int $product_id
|
|
* @property \Illuminate\Support\Carbon|null $created_at
|
|
* @property \Illuminate\Support\Carbon|null $updated_at
|
|
* @property-read \App\Models\Product $product
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Price newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Price newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Price query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Price whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Price whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Price wherePrice($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Price whereProductId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Price whereUpdatedAt($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class Price extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
public function product(){
|
|
return $this->belongsTo(Product::class,'product_id');
|
|
}
|
|
}
|