<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Action extends Model
{
    use HasFactory;

    public function packages() {
        return $this->belongsToMany('App\Models\Package', 'package_actions', 'id_action', 'id_package')->withTimestamps();;
    }
}
