CartProduct.php 228 B

123456789101112131415
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class CartProduct extends Model
  5. {
  6. protected $guarded = [];
  7. public function product()
  8. {
  9. return $this->belongsTo(Product::class);
  10. }
  11. }