\App\Http\ModelsProductImage

Class ProductImage ProductImage model.

Summary

Methods
Properties
Constants
scopeAdditionalImages()
product()
No public properties found
No constants found
No protected methods found
$fillable
N/A
No private methods found
No private properties found
N/A

Properties

$fillable

$fillable : 

Type

Methods

scopeAdditionalImages()

scopeAdditionalImages(  $query,   $product_id) : mixed

Get product additional images TODO: switch to relationship based - remove obsolete.

Parameters

$query
$product_id

Returns

mixed

product()

product() : \Illuminate\Database\Eloquent\Relations\BelongsTo

Each product image belongs to product.

Returns

\Illuminate\Database\Eloquent\Relations\BelongsTo