PHP Класс app\Product

Наследование: extends Illuminate\Database\Eloquent\Model
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$appends
$fillable array The attributes that are mass assignable.
$hidden
$table string The database table used by the model.

Открытые методы

Метод Описание
categories ( )
create ( array $attr = [] )
details ( )
getFeaturesAttribute ( )
getFirstImageAttribute ( )
getLastCommentsAttribute ( )
getNumOfReviewsAttribute ( )
getStatusLettersAttribute ( )
group ( )
scopeActives ( $query )
scopeFree ( $query )
scopeInCategories ( $query, $attr, $data = [] ) categories filter.
scopeInactives ( $query )
scopeLike ( $query, $attr = [], $search = [] ) Products tags filter.
scopeName ( $query, $input )
scopeRefine ( $query, $filters )
scopeSearch ( $query, $seed )
scopeType ( $query, $input )
user ( )

Описание методов

categories() публичный метод

public categories ( )

create() публичный статический метод

public static create ( array $attr = [] )
$attr array

details() публичный метод

public details ( )

getFeaturesAttribute() публичный метод

getFirstImageAttribute() публичный метод

getLastCommentsAttribute() публичный метод

getNumOfReviewsAttribute() публичный метод

getStatusLettersAttribute() публичный метод

group() публичный метод

public group ( )

scopeActives() публичный метод

public scopeActives ( $query )

scopeFree() публичный метод

public scopeFree ( $query )

scopeInCategories() публичный метод

categories filter.
public scopeInCategories ( $query, $attr, $data = [] )

scopeInactives() публичный метод

public scopeInactives ( $query )

scopeLike() публичный метод

Products tags filter.
public scopeLike ( $query, $attr = [], $search = [] )

scopeName() публичный метод

public scopeName ( $query, $input )

scopeRefine() публичный метод

public scopeRefine ( $query, $filters )

scopeSearch() публичный метод

public scopeSearch ( $query, $seed )

scopeType() публичный метод

public scopeType ( $query, $input )

user() публичный метод

public user ( )

Описание свойств

$appends защищенное свойство

protected $appends

$fillable защищенное свойство

The attributes that are mass assignable.
protected array $fillable
Результат array

$hidden защищенное свойство

protected $hidden

$table защищенное свойство

The database table used by the model.
protected string $table
Результат string