PHP Trait Stevebauman\Inventory\Traits\InventoryStockMovementTrait

Inheritance: use trait CommonMethodsTrait
ファイルを表示 Open project: stevebauman/inventory

Public Methods

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

Method Details

bootInventoryStockMovementTrait() public static method

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

rollback() public method

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

stock() abstract public method

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