PHP Class app\models\AlbumPhoto

Inheritance: extends Illuminate\Database\Eloquent\Model, use trait Illuminate\Database\Eloquent\SoftDeletes
Show file Open project: qloog/laravel5-backend Class Usage Examples

Protected Properties

Property Type Description
$fillable array The attributes that are mass assignable.
$hidden array The attributes excluded from the model's JSON form.
$table string The table associated with the model.

Public Methods

Method Description
album ( ) : BelongsTo 所属相册
user ( ) : BelongsToMany The one-to-many relationship between image and users.

Method Details

album() public method

所属相册
public album ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

user() public method

The one-to-many relationship between image and users.
public user ( ) : BelongsToMany
return BelongsToMany

Property Details

$fillable protected property

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

$hidden protected property

The attributes excluded from the model's JSON form.
protected array $hidden
return array

$table protected property

The table associated with the model.
protected string $table
return string