%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/silvzytp/dsr_code/app/Models/
Upload File :
Create Path :
Current File : /home/silvzytp/dsr_code/app/Models/IndividualTarget.php

<?php

namespace App\Models;

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

class IndividualTarget extends Model
{
    use HasFactory;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'user_id',
        'date',
        's_target',
        's_achived',
        's_deifict',
        'a_target',
        'a_achived',
        'a_deifict'
    ];

    public function manager(){
        return $this->belongsTo(User::class, 'user_id','id');
    }
}

Zerion Mini Shell 1.0