PHP 트레잇 Stevebauman\Inventory\Traits\InventoryStockMovementTrait

상속: use trait CommonMethodsTrait
파일 보기 프로젝트 열기: stevebauman/inventory

공개 메소드들

메소드 설명
bootInventoryStockMovementTrait ( ) : void Overrides the models boot function to set the user ID automatically to every new record.
rollback ( boolean $recursive = false ) : mixed Rolls back the current movement.
stock ( ) : BelongsTo The belongsTo stock relationship.

메소드 상세

bootInventoryStockMovementTrait() 공개 정적인 메소드

Overrides the models boot function to set the user ID automatically to every new record.
public static bootInventoryStockMovementTrait ( ) : void
리턴 void

rollback() 공개 메소드

Rolls back the current movement.
public rollback ( boolean $recursive = false ) : mixed
$recursive boolean
리턴 mixed

stock() 추상적인 공개 메소드

The belongsTo stock relationship.
abstract public stock ( ) : BelongsTo
리턴 Illuminate\Database\Eloquent\Relations\BelongsTo