*/ protected $fillable = [ 'title', 'location', 'address', 'start_at', 'end_at', 'publish_at', 'status', 'registration_type', 'registration_data', 'hero', 'content', 'price', 'ages', ]; /** * The attributes that are not mass assignable. * * @var array */ protected $guarded = ['id']; /** * Get all of the post's attachments. */ public function attachments() { return $this->morphMany('App\Attachment', 'attachable'); } }