ProductsManager
class ProductsManager extends Manager
Methods
array
fillable()
Define the fillable fields.
__construct()
Create a new manager instance.
withoutGlobalScopes()
Remove all global scopes.
Product
fromId(int $id, array $with = [])
Find a product by id.
Collection
Details
at line 92
protected array
fillable()
Define the fillable fields.
.
in Manager at line 20
protected Model
makeFillable(Model $model)
Set fillable fields for the given model.
at line 13
__construct()
Create a new manager instance.
at line 23
ProductsManager
withoutGlobalScopes()
Remove all global scopes.
at line 37
Product
create(array $data, Producer $producer)
Add a new product.
at line 55
Product
fromId(int $id, array $with = [])
Find a product by id.
at line 67
Collection
fromProducer(Producer $producer, array $with = [])
Get the given producers products.
at line 79
Product
update(Product $product, array $data)
Update the given product.