PHP Class app\FreeProduct

Inheritance: extends App\Eloquent\Model
Datei anzeigen Open project: ant-vel/antVel Class Usage Examples

Protected Properties

Property Type Description
$fillable array The attributes that are mass assignable.
$products
$table string The database table used by the model.

Public Methods

Method Description
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 )

Method Details

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

getListWithPaginate() public static method

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

getNextEvents() public static method

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

getWithProducts() public static method

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
return freeproducts collection of all the products contained in the orders associated with freeproduct, but defined as a property of the model

scopeIsValidIn() public method

public scopeIsValidIn ( $query, $date )

scopeOfStatus() public method

public scopeOfStatus ( $query, $status )

Property Details

$fillable protected_oe property

The attributes that are mass assignable.
protected array $fillable
return array

$products protected_oe property

protected $products

$table protected_oe property

The database table used by the model.
protected string $table
return string