Documentation

StoreCategory extends Model Uses HasFactory

Table of Contents

$fillable  : array<string|int, mixed>
The attributes that are mass assignable.
$hidden  : array<string|int, mixed>
The attributes excluded from the model's JSON form.
$table  : string
The table associated with the model.
stores()  : belongsToMany
Get all the store that have this category.

Properties

$fillable

The attributes that are mass assignable.

protected array<string|int, mixed> $fillable = ['code']

$hidden

The attributes excluded from the model's JSON form.

protected array<string|int, mixed> $hidden = ['updated_at', 'created_at', 'pivot']

$table

The table associated with the model.

protected string $table = "store_categories"

Methods

stores()

Get all the store that have this category.

public stores() : belongsToMany
Return values
belongsToMany

Search results