PHP Class app\Product

Inheritance: extends Illuminate\Database\Eloquent\Model
Afficher le fichier Open project: ant-vel/antVel Class Usage Examples

Protected Properties

Свойство Type Description
$appends
$fillable array The attributes that are mass assignable.
$hidden
$table string The database table used by the model.

Méthodes publiques

Méthode Description
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 ( )

Method Details

categories() public méthode

public categories ( )

create() public static méthode

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

details() public méthode

public details ( )

getFeaturesAttribute() public méthode

getFirstImageAttribute() public méthode

getLastCommentsAttribute() public méthode

getNumOfReviewsAttribute() public méthode

getStatusLettersAttribute() public méthode

group() public méthode

public group ( )

scopeActives() public méthode

public scopeActives ( $query )

scopeFree() public méthode

public scopeFree ( $query )

scopeInCategories() public méthode

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

scopeInactives() public méthode

public scopeInactives ( $query )

scopeLike() public méthode

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

scopeName() public méthode

public scopeName ( $query, $input )

scopeRefine() public méthode

public scopeRefine ( $query, $filters )

scopeSearch() public méthode

public scopeSearch ( $query, $seed )

scopeType() public méthode

public scopeType ( $query, $input )

user() public méthode

public user ( )

Property Details

$appends protected_oe property

protected $appends

$fillable protected_oe property

The attributes that are mass assignable.
protected array $fillable
Résultat array

$hidden protected_oe property

protected $hidden

$table protected_oe property

The database table used by the model.
protected string $table
Résultat string