OrderItem.php
TLDR
This file defines the OrderItem
class, which extends the Model
class and is located in the App\Models\Shop
namespace. This class represents an order item and specifies the table name as "shop_order_items".
Classes
OrderItem
The OrderItem
class extends the Model
class and represents an order item in a shop. It has the following properties:
-
$table
: Specifies the table name as "shop_order_items".
<?php
namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class OrderItem extends Model
{
use HasFactory;
/**
* @var string
*/
protected $table = 'shop_order_items';
}