app\FreeProduct::Orders PHP Method

Orders() public method

Relationship for list of commands associated with freeproducts. This is done by table freeproduct_order.
public Orders ( ) : Illuminate\Database\Eloquent\Collection
return Illuminate\Database\Eloquent\Collection List Ids Orders
    public function Orders()
    {
        return $this->belongsToMany('App\\Order', 'freeproduct_order', 'freeproduct_id')->withTimestamps();
    }