PHP Класс app\FreeProduct

Наследование: extends App\Eloquent\Model
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$fillable array The attributes that are mass assignable.
$products
$table string The database table used by the model.

Открытые методы

Метод Описание
Orders ( ) : Illuminate\Database\Eloquent\Collection Relationship for list of commands associated with freeproducts. This is done by table freeproduct_order.
getListWithPaginate ( $paginator, $status = null, $fields = ['*'] )
getNextEvents ( $fields, $limit, $date )
getWithProducts ( Illuminate\Database\Eloquent\Collection $items ) : freeproducts Returns all products contained in the orders associated with a freeproduct.
scopeIsValidIn ( $query, $date )
scopeOfStatus ( $query, $status )

Описание методов

Orders() публичный Метод

Relationship for list of commands associated with freeproducts. This is done by table freeproduct_order.
public Orders ( ) : Illuminate\Database\Eloquent\Collection
Результат Illuminate\Database\Eloquent\Collection List Ids Orders

getListWithPaginate() публичный статический Метод

public static getListWithPaginate ( $paginator, $status = null, $fields = ['*'] )

getNextEvents() публичный статический Метод

public static getNextEvents ( $fields, $limit, $date )

getWithProducts() публичный статический Метод

Returns all products contained in the orders associated with a freeproduct.
public static getWithProducts ( Illuminate\Database\Eloquent\Collection $items ) : freeproducts
$items Illuminate\Database\Eloquent\Collection
Результат freeproducts collection of all the products contained in the orders associated with freeproduct, but defined as a property of the model

scopeIsValidIn() публичный Метод

public scopeIsValidIn ( $query, $date )

scopeOfStatus() публичный Метод

public scopeOfStatus ( $query, $status )

Описание свойств

$fillable защищенное свойство

The attributes that are mass assignable.
protected array $fillable
Результат array

$products защищенное свойство

protected $products

$table защищенное свойство

The database table used by the model.
protected string $table
Результат string