PHP Class Stevebauman\Inventory\Models\Inventory

Inheritance: extends Model, use trait Stevebauman\Inventory\Traits\InventoryTrait, use trait Stevebauman\Inventory\Traits\InventoryVariantTrait, use trait Stevebauman\Inventory\Traits\AssemblyTrait
Exibir arquivo Open project: stevebauman/inventory Class Usage Examples

Protected Properties

Property Type Description
$table string The inventories table.

Public Methods

Method Description
assemblies ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany The belongsToMany assemblies relationship.
category ( ) : Illuminate\Database\Eloquent\Relations\HasOne The hasOne category relationship.
metric ( ) : Illuminate\Database\Eloquent\Relations\HasOne The hasOne metric relationship.
sku ( ) : Illuminate\Database\Eloquent\Relations\HasOne The hasOne sku relationship.
stocks ( ) : Illuminate\Database\Eloquent\Relations\HasMany The hasMany stocks relationship.
suppliers ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany The belongsToMany suppliers relationship.

Method Details

assemblies() public method

The belongsToMany assemblies relationship.
public assemblies ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
return Illuminate\Database\Eloquent\Relations\BelongsToMany

category() public method

The hasOne category relationship.
public category ( ) : Illuminate\Database\Eloquent\Relations\HasOne
return Illuminate\Database\Eloquent\Relations\HasOne

metric() public method

The hasOne metric relationship.
public metric ( ) : Illuminate\Database\Eloquent\Relations\HasOne
return Illuminate\Database\Eloquent\Relations\HasOne

sku() public method

The hasOne sku relationship.
public sku ( ) : Illuminate\Database\Eloquent\Relations\HasOne
return Illuminate\Database\Eloquent\Relations\HasOne

stocks() public method

The hasMany stocks relationship.
public stocks ( ) : Illuminate\Database\Eloquent\Relations\HasMany
return Illuminate\Database\Eloquent\Relations\HasMany

suppliers() public method

The belongsToMany suppliers relationship.
public suppliers ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
return Illuminate\Database\Eloquent\Relations\BelongsToMany

Property Details

$table protected_oe property

The inventories table.
protected string $table
return string