condorrocks/condor

View on GitHub
app/Aspect.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * @property int $id
 * @property string $name
 * @property \Illuminate\Support\Collection $feeds
 * @property \Illuminate\Support\Collection $snapshots
 */
class Aspect extends Model
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name',
    ];

    public function feeds()
    {
        return $this->hasMany(Feed::class);
    }

    public function snapshots()
    {
        return $this->hasMany(Snapshot::class);
    }
}