PHP Class app\Product

Inheritance: extends Illuminate\Database\Eloquent\Model
ファイルを表示 Open project: ant-vel/antVel Class Usage Examples

Protected Properties

Property Type Description
$appends
$fillable array The attributes that are mass assignable.
$hidden
$table string The database table used by the model.

Public Methods

Method 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 method

public categories ( )

create() public static method

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

details() public method

public details ( )

getFeaturesAttribute() public method

getFirstImageAttribute() public method

getLastCommentsAttribute() public method

getNumOfReviewsAttribute() public method

getStatusLettersAttribute() public method

group() public method

public group ( )

scopeActives() public method

public scopeActives ( $query )

scopeFree() public method

public scopeFree ( $query )

scopeInCategories() public method

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

scopeInactives() public method

public scopeInactives ( $query )

scopeLike() public method

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

scopeName() public method

public scopeName ( $query, $input )

scopeRefine() public method

public scopeRefine ( $query, $filters )

scopeSearch() public method

public scopeSearch ( $query, $seed )

scopeType() public method

public scopeType ( $query, $input )

user() public method

public user ( )

Property Details

$appends protected_oe property

protected $appends

$fillable protected_oe property

The attributes that are mass assignable.
protected array $fillable
return array

$hidden protected_oe property

protected $hidden

$table protected_oe property

The database table used by the model.
protected string $table
return string