bantenprov / task-profile
The TaskProfile package
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
Language:HTML
Requires
- php: >=5.6.4
- illuminate/support: 5.4.*
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'); }