<?php

namespace App\Models;

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

class Payroll extends Model
{
    use HasFactory;

    protected $guarded =[];

    protected $casts = [
        'bonus' => 'array',
        'deduct' => 'array'
    ];

    function user(){
        return $this->belongsTo(User::class);
    }
}
