bantenprov/task-profile

There is no license information available for the latest version (dev-master) of this package.

The TaskProfile package

dev-master 2018-01-18 11:40 UTC

This package is not auto-updated.

Last update: 2024-12-22 06:16:12 UTC


README

User Profile for Task Management

Edit

tambahkan script dibawah pada file app/User.php / model User

    public function getComment()
    {
        return $this->hasMany(\Bantenprov\Comment\Models\Comment::class);
    }

    public function getRating()
    {
        return $this->hasMany(\Bantenprov\Comment\Models\CommentRating::class);
    }

    public function getTask()
    {
        return $this->hasMany(\Bantenprov\Task\Models\Task::class);
    }

    public function getMember()
    {
        return $this->hasOne(\Bantenprov\Member\Models\Member::class);
    }

    public function getStaf()
    {
        return $this->hasOne(\Bantenprov\Staf\Models\Staf::class);
    }

    public function getMyRole()
    {
        return $this->belongsTo('App\Role','user_id');
    }