<?php

namespace Laravel\Nova\Actions;

use Laravel\Nova\Nova;

trait Actionable
{
    /**
     * Get all of the action events for the user.
     *
     * @return \Illuminate\Database\Eloquent\Relations\MorphMany
     */
    public function actions()
    {
        return $this->morphMany(Nova::actionResource()::$model, 'actionable');
    }
}
