PHP 클래스 app\FreeProduct

상속: extends App\Eloquent\Model
파일 보기 프로젝트 열기: ant-vel/antVel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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