shell bypass 403
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
use HasFactory;
public $table = "products";
public $primaryKey = "product_id";
public $increment = false;
public function procolor()
{
return $this->belongsToMany(Color::class,'product_colors','product_id','color_id');
}
public function prosize()
{
return $this->belongsToMany(Size::class,'product_sizes','product_id','size_id');
}
// public function prosize()
// {
// return $this->belongsTo(ProductSize::class,'product_id','product_id');
// }
public function colorImg()
{
return $this->belongsTo(ColorImage::class,'product_id','product_id');
}
public function clipClouser()
{
return $this->belongsTo(OtherVarient::class,'product_id','product_id');
}
public function category()
{
return $this->belongsTo(ProductCategory::class, 'product_category_id');
}
}