\App\Http\ModelsCategory

Class Category Category model to store category information.

Summary

Methods
Properties
Constants
scopeGetInfo()
products()
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

scopeGetInfo()

scopeGetInfo(  $query,   $slug) : mixed

Get address object from category_id.

Parameters

$query
$slug

Returns

mixed

products()

products() : \Illuminate\Database\Eloquent\Relations\HasMany

Each category has many products.

Returns

\Illuminate\Database\Eloquent\Relations\HasMany